diff --git a/cloudformation/serverless/aws-serverless-function_iampolicydocument.go b/cloudformation/serverless/aws-serverless-function_iampolicydocument.go index 4b0c18b5b4..faa7520ff4 100644 --- a/cloudformation/serverless/aws-serverless-function_iampolicydocument.go +++ b/cloudformation/serverless/aws-serverless-function_iampolicydocument.go @@ -13,7 +13,12 @@ type Function_IAMPolicyDocument struct { // Statement AWS CloudFormation Property // Required: true // See: http://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies.html - Statement interface{} `json:"Statement"` + Statement []interface{} `json:"Statement"` + + // Version AWS CloudFormation Property + // Required: true + // See: http://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies.html + Version string `json:"Version"` // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` diff --git a/cloudformation/serverless/aws-serverless-statemachine_iampolicydocument.go b/cloudformation/serverless/aws-serverless-statemachine_iampolicydocument.go index 6f345463b6..ba4a0e5df9 100644 --- a/cloudformation/serverless/aws-serverless-statemachine_iampolicydocument.go +++ b/cloudformation/serverless/aws-serverless-statemachine_iampolicydocument.go @@ -13,7 +13,12 @@ type StateMachine_IAMPolicyDocument struct { // Statement AWS CloudFormation Property // Required: true // See: http://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies.html - Statement interface{} `json:"Statement"` + Statement []interface{} `json:"Statement"` + + // Version AWS CloudFormation Property + // Required: true + // See: http://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies.html + Version string `json:"Version"` // 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 26109ff54d..9dc36875c3 100644 --- a/generate/sam-2016-10-31.json +++ b/generate/sam-2016-10-31.json @@ -1348,7 +1348,14 @@ "Properties": { "Statement": { "Documentation": "http://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies.html", - "PrimitiveType": "Json", + "Required": true, + "Type": "List", + "ItemType": "Json", + "UpdateType": "Immutable" + }, + "Version": { + "Documentation": "http://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies.html", + "PrimitiveType": "String", "Required": true, "UpdateType": "Immutable" } @@ -2433,7 +2440,14 @@ "Properties": { "Statement": { "Documentation": "http://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies.html", - "PrimitiveType": "Json", + "Required": true, + "Type": "List", + "ItemType": "Json", + "UpdateType": "Immutable" + }, + "Version": { + "Documentation": "http://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies.html", + "PrimitiveType": "String", "Required": true, "UpdateType": "Immutable" } diff --git a/schema/sam.go b/schema/sam.go index b64b9791ad..893fdb9bb6 100644 --- a/schema/sam.go +++ b/schema/sam.go @@ -125044,11 +125044,18 @@ var SamSchema = `{ "additionalProperties": false, "properties": { "Statement": { - "type": "object" + "items": { + "type": "object" + }, + "type": "array" + }, + "Version": { + "type": "string" } }, "required": [ - "Statement" + "Statement", + "Version" ], "type": "object" }, @@ -126289,11 +126296,18 @@ var SamSchema = `{ "additionalProperties": false, "properties": { "Statement": { - "type": "object" + "items": { + "type": "object" + }, + "type": "array" + }, + "Version": { + "type": "string" } }, "required": [ - "Statement" + "Statement", + "Version" ], "type": "object" }, diff --git a/schema/sam.schema.json b/schema/sam.schema.json index 2f793f5908..3cf492a5cc 100644 --- a/schema/sam.schema.json +++ b/schema/sam.schema.json @@ -125039,11 +125039,18 @@ "additionalProperties": false, "properties": { "Statement": { - "type": "object" + "items": { + "type": "object" + }, + "type": "array" + }, + "Version": { + "type": "string" } }, "required": [ - "Statement" + "Statement", + "Version" ], "type": "object" }, @@ -126284,11 +126291,18 @@ "additionalProperties": false, "properties": { "Statement": { - "type": "object" + "items": { + "type": "object" + }, + "type": "array" + }, + "Version": { + "type": "string" } }, "required": [ - "Statement" + "Statement", + "Version" ], "type": "object" },