From 961063c03dd77b0873d427230c63123234c96474 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 10 Mar 2023 11:02:19 +0100 Subject: [PATCH] fix(schema): CloudFormation Updates (#569) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: RĂºben Fonseca --- cloudformation/iot/aws-iot-jobtemplate.go | 5 +++ .../aws-iot-jobtemplate_maintenancewindow.go | 42 +++++++++++++++++++ .../organizations/aws-organizations-policy.go | 2 +- schema/cdk.go | 20 ++++++++- schema/cdk.schema.json | 20 ++++++++- schema/cloudformation.go | 20 ++++++++- schema/cloudformation.schema.json | 20 ++++++++- schema/sam.go | 20 ++++++++- schema/sam.schema.json | 20 ++++++++- 9 files changed, 162 insertions(+), 7 deletions(-) create mode 100644 cloudformation/iot/aws-iot-jobtemplate_maintenancewindow.go diff --git a/cloudformation/iot/aws-iot-jobtemplate.go b/cloudformation/iot/aws-iot-jobtemplate.go index 722df0b4a7..ff63571c62 100644 --- a/cloudformation/iot/aws-iot-jobtemplate.go +++ b/cloudformation/iot/aws-iot-jobtemplate.go @@ -54,6 +54,11 @@ type JobTemplate struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iot-jobtemplate.html#cfn-iot-jobtemplate-jobtemplateid JobTemplateId string `json:"JobTemplateId"` + // MaintenanceWindows AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iot-jobtemplate.html#cfn-iot-jobtemplate-maintenancewindows + MaintenanceWindows []JobTemplate_MaintenanceWindow `json:"MaintenanceWindows,omitempty"` + // PresignedUrlConfig AWS CloudFormation Property // Required: false // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iot-jobtemplate.html#cfn-iot-jobtemplate-presignedurlconfig diff --git a/cloudformation/iot/aws-iot-jobtemplate_maintenancewindow.go b/cloudformation/iot/aws-iot-jobtemplate_maintenancewindow.go new file mode 100644 index 0000000000..db4c93e4c2 --- /dev/null +++ b/cloudformation/iot/aws-iot-jobtemplate_maintenancewindow.go @@ -0,0 +1,42 @@ +// Code generated by "go generate". Please don't change this file directly. + +package iot + +import ( + "github.com/awslabs/goformation/v7/cloudformation/policies" +) + +// JobTemplate_MaintenanceWindow AWS CloudFormation Resource (AWS::IoT::JobTemplate.MaintenanceWindow) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-jobtemplate-maintenancewindow.html +type JobTemplate_MaintenanceWindow struct { + + // DurationInMinutes AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-jobtemplate-maintenancewindow.html#cfn-iot-jobtemplate-maintenancewindow-durationinminutes + DurationInMinutes *int `json:"DurationInMinutes,omitempty"` + + // StartTime AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-jobtemplate-maintenancewindow.html#cfn-iot-jobtemplate-maintenancewindow-starttime + StartTime *string `json:"StartTime,omitempty"` + + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` + + // AWSCloudFormationUpdateReplacePolicy represents a CloudFormation UpdateReplacePolicy + AWSCloudFormationUpdateReplacePolicy policies.UpdateReplacePolicy `json:"-"` + + // AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource + AWSCloudFormationDependsOn []string `json:"-"` + + // AWSCloudFormationMetadata stores structured data associated with this resource + AWSCloudFormationMetadata map[string]interface{} `json:"-"` + + // AWSCloudFormationCondition stores the logical ID of the condition that must be satisfied for this resource to be created + AWSCloudFormationCondition string `json:"-"` +} + +// AWSCloudFormationType returns the AWS CloudFormation resource type +func (r *JobTemplate_MaintenanceWindow) AWSCloudFormationType() string { + return "AWS::IoT::JobTemplate.MaintenanceWindow" +} diff --git a/cloudformation/organizations/aws-organizations-policy.go b/cloudformation/organizations/aws-organizations-policy.go index bccc5536c2..555037fdc9 100644 --- a/cloudformation/organizations/aws-organizations-policy.go +++ b/cloudformation/organizations/aws-organizations-policy.go @@ -17,7 +17,7 @@ type Policy struct { // Content AWS CloudFormation Property // Required: true // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-organizations-policy.html#cfn-organizations-policy-content - Content string `json:"Content"` + Content interface{} `json:"Content"` // Description AWS CloudFormation Property // Required: false diff --git a/schema/cdk.go b/schema/cdk.go index 496eb0c5e7..74e75fccc2 100644 --- a/schema/cdk.go +++ b/schema/cdk.go @@ -80578,6 +80578,12 @@ var CdkSchema = `{ "JobTemplateId": { "type": "string" }, + "MaintenanceWindows": { + "items": { + "$ref": "#/definitions/AWS::IoT::JobTemplate.MaintenanceWindow" + }, + "type": "array" + }, "PresignedUrlConfig": { "$ref": "#/definitions/AWS::IoT::JobTemplate.PresignedUrlConfig" }, @@ -80701,6 +80707,18 @@ var CdkSchema = `{ }, "type": "object" }, + "AWS::IoT::JobTemplate.MaintenanceWindow": { + "additionalProperties": false, + "properties": { + "DurationInMinutes": { + "type": "number" + }, + "StartTime": { + "type": "string" + } + }, + "type": "object" + }, "AWS::IoT::JobTemplate.PresignedUrlConfig": { "additionalProperties": false, "properties": { @@ -117646,7 +117664,7 @@ var CdkSchema = `{ "additionalProperties": false, "properties": { "Content": { - "type": "string" + "type": "object" }, "Description": { "type": "string" diff --git a/schema/cdk.schema.json b/schema/cdk.schema.json index 5d8ff9b8d6..f99de68ed0 100644 --- a/schema/cdk.schema.json +++ b/schema/cdk.schema.json @@ -80573,6 +80573,12 @@ "JobTemplateId": { "type": "string" }, + "MaintenanceWindows": { + "items": { + "$ref": "#/definitions/AWS::IoT::JobTemplate.MaintenanceWindow" + }, + "type": "array" + }, "PresignedUrlConfig": { "$ref": "#/definitions/AWS::IoT::JobTemplate.PresignedUrlConfig" }, @@ -80696,6 +80702,18 @@ }, "type": "object" }, + "AWS::IoT::JobTemplate.MaintenanceWindow": { + "additionalProperties": false, + "properties": { + "DurationInMinutes": { + "type": "number" + }, + "StartTime": { + "type": "string" + } + }, + "type": "object" + }, "AWS::IoT::JobTemplate.PresignedUrlConfig": { "additionalProperties": false, "properties": { @@ -117641,7 +117659,7 @@ "additionalProperties": false, "properties": { "Content": { - "type": "string" + "type": "object" }, "Description": { "type": "string" diff --git a/schema/cloudformation.go b/schema/cloudformation.go index ec9e15f3d1..c4848324a0 100644 --- a/schema/cloudformation.go +++ b/schema/cloudformation.go @@ -80517,6 +80517,12 @@ var CloudformationSchema = `{ "JobTemplateId": { "type": "string" }, + "MaintenanceWindows": { + "items": { + "$ref": "#/definitions/AWS::IoT::JobTemplate.MaintenanceWindow" + }, + "type": "array" + }, "PresignedUrlConfig": { "$ref": "#/definitions/AWS::IoT::JobTemplate.PresignedUrlConfig" }, @@ -80640,6 +80646,18 @@ var CloudformationSchema = `{ }, "type": "object" }, + "AWS::IoT::JobTemplate.MaintenanceWindow": { + "additionalProperties": false, + "properties": { + "DurationInMinutes": { + "type": "number" + }, + "StartTime": { + "type": "string" + } + }, + "type": "object" + }, "AWS::IoT::JobTemplate.PresignedUrlConfig": { "additionalProperties": false, "properties": { @@ -117585,7 +117603,7 @@ var CloudformationSchema = `{ "additionalProperties": false, "properties": { "Content": { - "type": "string" + "type": "object" }, "Description": { "type": "string" diff --git a/schema/cloudformation.schema.json b/schema/cloudformation.schema.json index 955ecf4d34..d7764e1579 100644 --- a/schema/cloudformation.schema.json +++ b/schema/cloudformation.schema.json @@ -80512,6 +80512,12 @@ "JobTemplateId": { "type": "string" }, + "MaintenanceWindows": { + "items": { + "$ref": "#/definitions/AWS::IoT::JobTemplate.MaintenanceWindow" + }, + "type": "array" + }, "PresignedUrlConfig": { "$ref": "#/definitions/AWS::IoT::JobTemplate.PresignedUrlConfig" }, @@ -80635,6 +80641,18 @@ }, "type": "object" }, + "AWS::IoT::JobTemplate.MaintenanceWindow": { + "additionalProperties": false, + "properties": { + "DurationInMinutes": { + "type": "number" + }, + "StartTime": { + "type": "string" + } + }, + "type": "object" + }, "AWS::IoT::JobTemplate.PresignedUrlConfig": { "additionalProperties": false, "properties": { @@ -117580,7 +117598,7 @@ "additionalProperties": false, "properties": { "Content": { - "type": "string" + "type": "object" }, "Description": { "type": "string" diff --git a/schema/sam.go b/schema/sam.go index 50ec832349..45e21919b9 100644 --- a/schema/sam.go +++ b/schema/sam.go @@ -80517,6 +80517,12 @@ var SamSchema = `{ "JobTemplateId": { "type": "string" }, + "MaintenanceWindows": { + "items": { + "$ref": "#/definitions/AWS::IoT::JobTemplate.MaintenanceWindow" + }, + "type": "array" + }, "PresignedUrlConfig": { "$ref": "#/definitions/AWS::IoT::JobTemplate.PresignedUrlConfig" }, @@ -80640,6 +80646,18 @@ var SamSchema = `{ }, "type": "object" }, + "AWS::IoT::JobTemplate.MaintenanceWindow": { + "additionalProperties": false, + "properties": { + "DurationInMinutes": { + "type": "number" + }, + "StartTime": { + "type": "string" + } + }, + "type": "object" + }, "AWS::IoT::JobTemplate.PresignedUrlConfig": { "additionalProperties": false, "properties": { @@ -117585,7 +117603,7 @@ var SamSchema = `{ "additionalProperties": false, "properties": { "Content": { - "type": "string" + "type": "object" }, "Description": { "type": "string" diff --git a/schema/sam.schema.json b/schema/sam.schema.json index da472cafe8..a33f39a2cb 100644 --- a/schema/sam.schema.json +++ b/schema/sam.schema.json @@ -80512,6 +80512,12 @@ "JobTemplateId": { "type": "string" }, + "MaintenanceWindows": { + "items": { + "$ref": "#/definitions/AWS::IoT::JobTemplate.MaintenanceWindow" + }, + "type": "array" + }, "PresignedUrlConfig": { "$ref": "#/definitions/AWS::IoT::JobTemplate.PresignedUrlConfig" }, @@ -80635,6 +80641,18 @@ }, "type": "object" }, + "AWS::IoT::JobTemplate.MaintenanceWindow": { + "additionalProperties": false, + "properties": { + "DurationInMinutes": { + "type": "number" + }, + "StartTime": { + "type": "string" + } + }, + "type": "object" + }, "AWS::IoT::JobTemplate.PresignedUrlConfig": { "additionalProperties": false, "properties": { @@ -117580,7 +117598,7 @@ "additionalProperties": false, "properties": { "Content": { - "type": "string" + "type": "object" }, "Description": { "type": "string"