Skip to content

Commit

Permalink
feat(sam): add missing fields to ScheduledEvents and remove required …
Browse files Browse the repository at this point in the history
…versions from IAM
  • Loading branch information
jpinkney-aws authored and rubenfonseca committed Sep 2, 2022
1 parent 435ed2f commit 33395af
Show file tree
Hide file tree
Showing 5 changed files with 56 additions and 7 deletions.

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

15 changes: 15 additions & 0 deletions cloudformation/serverless/aws-serverless-function_scheduleevent.go

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

20 changes: 19 additions & 1 deletion generate/sam-2016-10-31.json
Original file line number Diff line number Diff line change
Expand Up @@ -1242,6 +1242,24 @@
"Required": false,
"PrimitiveType": "String",
"UpdateType": "Immutable"
},
"Name": {
"Documentation": "https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#schedule",
"Required": false,
"PrimitiveType": "String",
"UpdateType": "Immutable"
},
"Description": {
"Documentation": "https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#schedule",
"Required": false,
"PrimitiveType": "String",
"UpdateType": "Immutable"
},
"Enabled": {
"Documentation": "https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#schedule",
"Required": false,
"PrimitiveType": "Boolean",
"UpdateType": "Immutable"
}
}
},
Expand Down Expand Up @@ -1421,7 +1439,7 @@
"Version": {
"Documentation": "http://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies.html",
"PrimitiveType": "String",
"Required": true,
"Required": false,
"UpdateType": "Immutable"
}
}
Expand Down
12 changes: 10 additions & 2 deletions schema/sam.go
Original file line number Diff line number Diff line change
Expand Up @@ -133451,8 +133451,7 @@ var SamSchema = `{
}
},
"required": [
"Statement",
"Version"
"Statement"
],
"type": "object"
},
Expand Down Expand Up @@ -133853,9 +133852,18 @@ var SamSchema = `{
"AWS::Serverless::Function.ScheduleEvent": {
"additionalProperties": false,
"properties": {
"Description": {
"type": "string"
},
"Enabled": {
"type": "boolean"
},
"Input": {
"type": "string"
},
"Name": {
"type": "string"
},
"Schedule": {
"type": "string"
}
Expand Down
12 changes: 10 additions & 2 deletions schema/sam.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -133446,8 +133446,7 @@
}
},
"required": [
"Statement",
"Version"
"Statement"
],
"type": "object"
},
Expand Down Expand Up @@ -133848,9 +133847,18 @@
"AWS::Serverless::Function.ScheduleEvent": {
"additionalProperties": false,
"properties": {
"Description": {
"type": "string"
},
"Enabled": {
"type": "boolean"
},
"Input": {
"type": "string"
},
"Name": {
"type": "string"
},
"Schedule": {
"type": "string"
}
Expand Down

0 comments on commit 33395af

Please sign in to comment.