From 3cff1fffe990b282ad7a2cab17792e33a110571d Mon Sep 17 00:00:00 2001 From: Garret Sweetwood Date: Wed, 18 Jan 2023 04:01:05 -0800 Subject: [PATCH] fix(schema): add FunctionResponseTypes property for kinesis events (#539) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: RĂºben Fonseca --- .../serverless/aws-serverless-function_kinesisevent.go | 5 +++++ generate/sam-2016-10-31.json | 7 +++++++ schema/sam.go | 6 ++++++ schema/sam.schema.json | 6 ++++++ 4 files changed, 24 insertions(+) diff --git a/cloudformation/serverless/aws-serverless-function_kinesisevent.go b/cloudformation/serverless/aws-serverless-function_kinesisevent.go index 65d52e3fd9..93bd330f6b 100644 --- a/cloudformation/serverless/aws-serverless-function_kinesisevent.go +++ b/cloudformation/serverless/aws-serverless-function_kinesisevent.go @@ -20,6 +20,11 @@ type Function_KinesisEvent struct { // See: https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#kinesis Enabled *bool `json:"Enabled,omitempty"` + // FunctionResponseTypes AWS CloudFormation Property + // Required: false + // See: https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#kinesis + FunctionResponseTypes []string `json:"FunctionResponseTypes,omitempty"` + // StartingPosition AWS CloudFormation Property // Required: true // See: https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#kinesis diff --git a/generate/sam-2016-10-31.json b/generate/sam-2016-10-31.json index 909934e93f..2194c1fced 100644 --- a/generate/sam-2016-10-31.json +++ b/generate/sam-2016-10-31.json @@ -937,6 +937,13 @@ "Required": false, "PrimitiveType": "Boolean", "UpdateType": "Immutable" + }, + "FunctionResponseTypes": { + "Documentation": "https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#kinesis", + "Required": false, + "Type": "List", + "PrimitiveItemType": "String", + "UpdateType": "Immutable" } } }, diff --git a/schema/sam.go b/schema/sam.go index 5817750549..a1ff33ce22 100644 --- a/schema/sam.go +++ b/schema/sam.go @@ -144743,6 +144743,12 @@ var SamSchema = `{ "Enabled": { "type": "boolean" }, + "FunctionResponseTypes": { + "items": { + "type": "string" + }, + "type": "array" + }, "StartingPosition": { "type": "string" }, diff --git a/schema/sam.schema.json b/schema/sam.schema.json index 1f8b85f887..f7908dee90 100644 --- a/schema/sam.schema.json +++ b/schema/sam.schema.json @@ -144738,6 +144738,12 @@ "Enabled": { "type": "boolean" }, + "FunctionResponseTypes": { + "items": { + "type": "string" + }, + "type": "array" + }, "StartingPosition": { "type": "string" },