Skip to content

Commit

Permalink
chore: Update SAM Resource Specification (#2094)
Browse files Browse the repository at this point in the history
  • Loading branch information
RomainMuller authored Mar 26, 2019
1 parent 4a82f13 commit b3afb53
Show file tree
Hide file tree
Showing 4 changed files with 58 additions and 3 deletions.
25 changes: 25 additions & 0 deletions packages/@aws-cdk/cfnspec/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,30 @@


# Serverless Application Model (SAM) Resource Specification v2016-10-31

## New Resource Types


## Attribute Changes


## Property Changes

* AWS::Serverless::Api TracingEnabled (__added__)
* AWS::Serverless::Function PermissionsBoundary (__added__)

## Property Type Changes

* AWS::Serverless::Function.DynamoDBEvent Enabled (__added__)
* AWS::Serverless::Function.DynamoDBEvent BatchSize.Required (__changed__)
* Old: true
* New: false
* AWS::Serverless::Function.KinesisEvent Enabled (__added__)
* AWS::Serverless::Function.SQSEvent Enabled (__added__)







Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ async function main() {

// iterate over all cloudformation namespaces
for (const namespace of cfnspec.namespaces()) {
const [ moduleFamily, moduleBaseName ] = namespace.split('::');
const [moduleFamily, moduleBaseName] = (namespace === 'AWS::Serverless' ? 'AWS::SAM' : namespace).split('::');

const moduleName = `${moduleFamily}-${moduleBaseName.replace(/V\d+$/, '')}`.toLocaleLowerCase();
const packagePath = path.join(root, moduleName);
Expand Down
32 changes: 31 additions & 1 deletion packages/@aws-cdk/cfnspec/spec-source/000_sam.spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,13 @@
"BatchSize": {
"Documentation": "https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#dynamodb",
"PrimitiveType": "Integer",
"Required": true,
"Required": false,
"UpdateType": "Immutable"
},
"Enabled": {
"Documentation": "https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#dynamodb",
"PrimitiveType": "Boolean",
"Required": false,
"UpdateType": "Immutable"
},
"StartingPosition": {
Expand Down Expand Up @@ -269,6 +275,12 @@
"Required": false,
"UpdateType": "Immutable"
},
"Enabled": {
"Documentation": "https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#kinesis",
"PrimitiveType": "Boolean",
"Required": false,
"UpdateType": "Immutable"
},
"StartingPosition": {
"Documentation": "https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#kinesis",
"PrimitiveType": "String",
Expand Down Expand Up @@ -364,6 +376,12 @@
"Required": false,
"UpdateType": "Immutable"
},
"Enabled": {
"Documentation": "https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#sqs",
"PrimitiveType": "Boolean",
"Required": false,
"UpdateType": "Immutable"
},
"Queue": {
"Documentation": "https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#sqs",
"PrimitiveType": "String",
Expand Down Expand Up @@ -532,6 +550,12 @@
"Required": true,
"UpdateType": "Immutable"
},
"TracingEnabled": {
"Documentation": "https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#awsserverlessapi",
"PrimitiveType": "Boolean",
"Required": false,
"UpdateType": "Immutable"
},
"Variables": {
"Documentation": "https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#awsserverlessapi",
"PrimitiveItemType": "String",
Expand Down Expand Up @@ -666,6 +690,12 @@
"Required": false,
"UpdateType": "Immutable"
},
"PermissionsBoundary": {
"Documentation": "https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#awsserverlessfunction",
"PrimitiveType": "String",
"Required": false,
"UpdateType": "Immutable"
},
"Policies": {
"Documentation": "https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#awsserverlessfunction",
"ItemTypes": [
Expand Down
2 changes: 1 addition & 1 deletion packages/aws-cdk/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b3afb53

Please sign in to comment.