diff --git a/cloudformation/serverless/aws-serverless-api.go b/cloudformation/serverless/aws-serverless-api.go index 0c433a4c51..6a9069b977 100644 --- a/cloudformation/serverless/aws-serverless-api.go +++ b/cloudformation/serverless/aws-serverless-api.go @@ -67,6 +67,11 @@ type Api struct { // See: https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#awsserverlessapi Name string `json:"Name,omitempty"` + // OpenApiVersion AWS CloudFormation Property + // Required: false + // See: https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#awsserverlessapi + OpenApiVersion string `json:"OpenApiVersion,omitempty"` + // StageName AWS CloudFormation Property // Required: true // See: https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#awsserverlessapi diff --git a/generate/sam-2016-10-31.json b/generate/sam-2016-10-31.json index 7849d20dc1..8a5a8d0728 100644 --- a/generate/sam-2016-10-31.json +++ b/generate/sam-2016-10-31.json @@ -252,6 +252,12 @@ "Required": false, "Type": "AccessLogSetting", "UpdateType": "Immutable" + }, + "OpenApiVersion": { + "Documentation": "https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#awsserverlessapi", + "Required": false, + "PrimitiveType": "String", + "UpdateType": "Immutable" } } },