diff --git a/cloudformation/serverless/aws-serverless-function.go b/cloudformation/serverless/aws-serverless-function.go index 01b6824122..451209a5f6 100644 --- a/cloudformation/serverless/aws-serverless-function.go +++ b/cloudformation/serverless/aws-serverless-function.go @@ -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"` @@ -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"` @@ -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"` diff --git a/schema/sam.go b/schema/sam.go index 4a54de1314..4f35d777ad 100644 --- a/schema/sam.go +++ b/schema/sam.go @@ -102435,11 +102435,6 @@ var SamSchema = `{ "$ref": "#/definitions/AWS::Serverless::Function.VpcConfig" } }, - "required": [ - "CodeUri", - "Handler", - "Runtime" - ], "type": "object" }, "Type": { @@ -102458,8 +102453,7 @@ var SamSchema = `{ } }, "required": [ - "Type", - "Properties" + "Type" ], "type": "object" }, diff --git a/schema/sam.schema.json b/schema/sam.schema.json index e6c672f419..0de3335e26 100644 --- a/schema/sam.schema.json +++ b/schema/sam.schema.json @@ -102432,11 +102432,6 @@ "$ref": "#/definitions/AWS::Serverless::Function.VpcConfig" } }, - "required": [ - "CodeUri", - "Handler", - "Runtime" - ], "type": "object" }, "Type": { @@ -102455,8 +102450,7 @@ } }, "required": [ - "Type", - "Properties" + "Type" ], "type": "object" },