From 23e1b127401f83a179b0da0968621371400ed437 Mon Sep 17 00:00:00 2001 From: Ruben Fonseca Date: Fri, 11 Aug 2023 15:54:15 +0200 Subject: [PATCH] fix(alexa): use the correct SkillId field --- .../aws-serverless-function_alexaskillevent.go | 4 ++-- generate/sam-2016-10-31.json | 5 ++--- schema/sam.go | 10 ++-------- schema/sam.schema.json | 10 ++-------- 4 files changed, 8 insertions(+), 21 deletions(-) diff --git a/cloudformation/serverless/aws-serverless-function_alexaskillevent.go b/cloudformation/serverless/aws-serverless-function_alexaskillevent.go index fd7f6ac06c..cd8c376aa6 100644 --- a/cloudformation/serverless/aws-serverless-function_alexaskillevent.go +++ b/cloudformation/serverless/aws-serverless-function_alexaskillevent.go @@ -10,10 +10,10 @@ import ( // See: https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#alexaskill type Function_AlexaSkillEvent struct { - // Variables AWS CloudFormation Property + // SkillId AWS CloudFormation Property // Required: false // See: https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#alexaskill - Variables map[string]string `json:"Variables,omitempty"` + SkillId *string `json:"SkillId,omitempty"` // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` diff --git a/generate/sam-2016-10-31.json b/generate/sam-2016-10-31.json index d907d0feba..fc703aab1e 100644 --- a/generate/sam-2016-10-31.json +++ b/generate/sam-2016-10-31.json @@ -1459,11 +1459,10 @@ "AWS::Serverless::Function.AlexaSkillEvent": { "Documentation": "https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#alexaskill", "Properties": { - "Variables": { + "SkillId": { "Documentation": "https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#alexaskill", "Required": false, - "Type": "Map", - "PrimitiveItemType": "String", + "PrimitiveType": "String", "UpdateType": "Immutable" } } diff --git a/schema/sam.go b/schema/sam.go index d281ebc0ff..3b17a158de 100644 --- a/schema/sam.go +++ b/schema/sam.go @@ -183599,14 +183599,8 @@ var SamSchema = `{ "AWS::Serverless::Function.AlexaSkillEvent": { "additionalProperties": false, "properties": { - "Variables": { - "additionalProperties": true, - "patternProperties": { - "^[a-zA-Z0-9]+$": { - "type": "string" - } - }, - "type": "object" + "SkillId": { + "type": "string" } }, "type": "object" diff --git a/schema/sam.schema.json b/schema/sam.schema.json index 5e29ab0048..de005ec36f 100644 --- a/schema/sam.schema.json +++ b/schema/sam.schema.json @@ -183594,14 +183594,8 @@ "AWS::Serverless::Function.AlexaSkillEvent": { "additionalProperties": false, "properties": { - "Variables": { - "additionalProperties": true, - "patternProperties": { - "^[a-zA-Z0-9]+$": { - "type": "string" - } - }, - "type": "object" + "SkillId": { + "type": "string" } }, "type": "object"