From 1ff11e8fc9da67c6f3ba2118b30bb0d637e3b9af Mon Sep 17 00:00:00 2001 From: Dylan Jones Date: Wed, 18 Jan 2023 11:59:45 +0000 Subject: [PATCH] fix(schema): add DisableExecuteApiEndpoint to Serverless API (#538) --- cloudformation/global/api.go | 5 +++++ cloudformation/serverless/aws-serverless-api.go | 5 +++++ generate/sam-2016-10-31.json | 6 ++++++ schema/sam.go | 6 ++++++ schema/sam.schema.json | 6 ++++++ 5 files changed, 28 insertions(+) diff --git a/cloudformation/global/api.go b/cloudformation/global/api.go index d8322c7b61..86e12e3784 100644 --- a/cloudformation/global/api.go +++ b/cloudformation/global/api.go @@ -55,6 +55,11 @@ type Api struct { // See: https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/sam-resource-api.html#sam-api-description Description *string `json:"Description,omitempty"` + // DisableExecuteApiEndpoint AWS CloudFormation Property + // Required: false + // See: https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/sam-resource-api.html#sam-api-disableexecuteapiendpoint + DisableExecuteApiEndpoint *bool `json:"DisableExecuteApiEndpoint,omitempty"` + // Domain AWS CloudFormation Property // Required: false // See: https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/sam-resource-api.html#sam-api-domain diff --git a/cloudformation/serverless/aws-serverless-api.go b/cloudformation/serverless/aws-serverless-api.go index 2cdd325602..ff06acce23 100644 --- a/cloudformation/serverless/aws-serverless-api.go +++ b/cloudformation/serverless/aws-serverless-api.go @@ -63,6 +63,11 @@ type Api struct { // See: https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/sam-resource-api.html#sam-api-description Description *string `json:"Description,omitempty"` + // DisableExecuteApiEndpoint AWS CloudFormation Property + // Required: false + // See: https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/sam-resource-api.html#sam-api-disableexecuteapiendpoint + DisableExecuteApiEndpoint *bool `json:"DisableExecuteApiEndpoint,omitempty"` + // Domain AWS CloudFormation Property // Required: false // See: https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/sam-resource-api.html#sam-api-domain diff --git a/generate/sam-2016-10-31.json b/generate/sam-2016-10-31.json index bf2d7e2ab0..909934e93f 100644 --- a/generate/sam-2016-10-31.json +++ b/generate/sam-2016-10-31.json @@ -417,6 +417,12 @@ "Required": false, "Type": "DomainConfiguration", "UpdateType": "Immutable" + }, + "DisableExecuteApiEndpoint": { + "Documentation": "https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/sam-resource-api.html#sam-api-disableexecuteapiendpoint", + "Required": false, + "PrimitiveType": "Boolean", + "UpdateType": "Immutable" } } }, diff --git a/schema/sam.go b/schema/sam.go index 269e990061..5817750549 100644 --- a/schema/sam.go +++ b/schema/sam.go @@ -143565,6 +143565,9 @@ var SamSchema = `{ "Description": { "type": "string" }, + "DisableExecuteApiEndpoint": { + "type": "boolean" + }, "Domain": { "$ref": "#/definitions/AWS::Serverless::Api.DomainConfiguration" }, @@ -156237,6 +156240,9 @@ var SamSchema = `{ "Description": { "type": "string" }, + "DisableExecuteApiEndpoint": { + "type": "boolean" + }, "Domain": { "$ref": "#/definitions/AWS::Serverless::Api.DomainConfiguration" }, diff --git a/schema/sam.schema.json b/schema/sam.schema.json index 0ce61bd5a7..1f8b85f887 100644 --- a/schema/sam.schema.json +++ b/schema/sam.schema.json @@ -143560,6 +143560,9 @@ "Description": { "type": "string" }, + "DisableExecuteApiEndpoint": { + "type": "boolean" + }, "Domain": { "$ref": "#/definitions/AWS::Serverless::Api.DomainConfiguration" }, @@ -156232,6 +156235,9 @@ "Description": { "type": "string" }, + "DisableExecuteApiEndpoint": { + "type": "boolean" + }, "Domain": { "$ref": "#/definitions/AWS::Serverless::Api.DomainConfiguration" },