Skip to content

Commit

Permalink
fix(schema): CloudFormation Updates (awslabs#387)
Browse files Browse the repository at this point in the history
Co-authored-by: Paul Maddox <paul.maddox@gmail.com>
  • Loading branch information
github-actions[bot] and PaulMaddox committed Jun 29, 2021
1 parent ac9bfc3 commit 71f83ce
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 17 deletions.
6 changes: 3 additions & 3 deletions cloudformation/serverless/aws-serverless-function.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ type Function struct {
CodeSigningConfigArn string `json:"CodeSigningConfigArn,omitempty"`

// CodeUri AWS CloudFormation Property
// Required: true
// Required: false
// See: https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#awsserverlessfunction
CodeUri *Function_CodeUri `json:"CodeUri,omitempty"`

Expand Down Expand Up @@ -78,7 +78,7 @@ type Function struct {
FunctionName string `json:"FunctionName,omitempty"`

// Handler AWS CloudFormation Property
// Required: true
// Required: false
// See: https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#awsserverlessfunction
Handler string `json:"Handler,omitempty"`

Expand Down Expand Up @@ -143,7 +143,7 @@ type Function struct {
Role string `json:"Role,omitempty"`

// Runtime AWS CloudFormation Property
// Required: true
// Required: false
// See: https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#awsserverlessfunction
Runtime string `json:"Runtime,omitempty"`

Expand Down
8 changes: 1 addition & 7 deletions schema/sam.go
Original file line number Diff line number Diff line change
Expand Up @@ -102435,11 +102435,6 @@ var SamSchema = `{
"$ref": "#/definitions/AWS::Serverless::Function.VpcConfig"
}
},
"required": [
"CodeUri",
"Handler",
"Runtime"
],
"type": "object"
},
"Type": {
Expand All @@ -102458,8 +102453,7 @@ var SamSchema = `{
}
},
"required": [
"Type",
"Properties"
"Type"
],
"type": "object"
},
Expand Down
8 changes: 1 addition & 7 deletions schema/sam.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -102432,11 +102432,6 @@
"$ref": "#/definitions/AWS::Serverless::Function.VpcConfig"
}
},
"required": [
"CodeUri",
"Handler",
"Runtime"
],
"type": "object"
},
"Type": {
Expand All @@ -102455,8 +102450,7 @@
}
},
"required": [
"Type",
"Properties"
"Type"
],
"type": "object"
},
Expand Down

0 comments on commit 71f83ce

Please sign in to comment.