From f531a8e526b4a5d3a1615e64207344e52d486a45 Mon Sep 17 00:00:00 2001 From: gsweetwood Date: Tue, 17 Jan 2023 17:09:01 -0800 Subject: [PATCH 1/2] fix(schema): add FunctionResponseTypes property for kinesis events --- generate/sam-2016-10-31.json | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/generate/sam-2016-10-31.json b/generate/sam-2016-10-31.json index bf2d7e2ab0..5a8e6b9719 100644 --- a/generate/sam-2016-10-31.json +++ b/generate/sam-2016-10-31.json @@ -931,6 +931,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" } } }, From a60fe49125c273d42af06edb5dc1a6070ed3aafe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=BAben=20Fonseca?= Date: Wed, 18 Jan 2023 12:59:12 +0100 Subject: [PATCH 2/2] fix: generate resources --- .../serverless/aws-serverless-function_kinesisevent.go | 5 +++++ schema/sam.go | 6 ++++++ schema/sam.schema.json | 6 ++++++ 3 files changed, 17 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/schema/sam.go b/schema/sam.go index 269e990061..7b1ee6dad7 100644 --- a/schema/sam.go +++ b/schema/sam.go @@ -144740,6 +144740,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 0ce61bd5a7..04a277ae4d 100644 --- a/schema/sam.schema.json +++ b/schema/sam.schema.json @@ -144735,6 +144735,12 @@ "Enabled": { "type": "boolean" }, + "FunctionResponseTypes": { + "items": { + "type": "string" + }, + "type": "array" + }, "StartingPosition": { "type": "string" },