diff --git a/cloudformation/accessanalyzer/aws-accessanalyzer-analyzer.go b/cloudformation/accessanalyzer/aws-accessanalyzer-analyzer.go index 0c8ffbcf1e..0c2e340fa7 100644 --- a/cloudformation/accessanalyzer/aws-accessanalyzer-analyzer.go +++ b/cloudformation/accessanalyzer/aws-accessanalyzer-analyzer.go @@ -41,6 +41,9 @@ type Analyzer struct { // 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 @@ -58,12 +61,14 @@ func (r Analyzer) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -77,6 +82,7 @@ func (r *Analyzer) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -100,5 +106,8 @@ func (r *Analyzer) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/accessanalyzer/aws-accessanalyzer-analyzer_archiverule.go b/cloudformation/accessanalyzer/aws-accessanalyzer-analyzer_archiverule.go index 520f951943..28f106d307 100644 --- a/cloudformation/accessanalyzer/aws-accessanalyzer-analyzer_archiverule.go +++ b/cloudformation/accessanalyzer/aws-accessanalyzer-analyzer_archiverule.go @@ -26,6 +26,9 @@ type Analyzer_ArchiveRule struct { // 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 diff --git a/cloudformation/accessanalyzer/aws-accessanalyzer-analyzer_filter.go b/cloudformation/accessanalyzer/aws-accessanalyzer-analyzer_filter.go index a26f465d39..e4152de974 100644 --- a/cloudformation/accessanalyzer/aws-accessanalyzer-analyzer_filter.go +++ b/cloudformation/accessanalyzer/aws-accessanalyzer-analyzer_filter.go @@ -41,6 +41,9 @@ type Analyzer_Filter struct { // 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 diff --git a/cloudformation/all.go b/cloudformation/all.go index 1e34f2c2fb..fbb247c904 100644 --- a/cloudformation/all.go +++ b/cloudformation/all.go @@ -200,6 +200,7 @@ func AllResources() map[string]Resource { "AWS::CloudWatch::Dashboard": &cloudwatch.Dashboard{}, "AWS::CloudWatch::InsightRule": &cloudwatch.InsightRule{}, "AWS::CodeBuild::Project": &codebuild.Project{}, + "AWS::CodeBuild::ReportGroup": &codebuild.ReportGroup{}, "AWS::CodeBuild::SourceCredential": &codebuild.SourceCredential{}, "AWS::CodeCommit::Repository": &codecommit.Repository{}, "AWS::CodeDeploy::Application": &codedeploy.Application{}, @@ -259,6 +260,7 @@ func AllResources() map[string]Resource { "AWS::EC2::EIPAssociation": &ec2.EIPAssociation{}, "AWS::EC2::EgressOnlyInternetGateway": &ec2.EgressOnlyInternetGateway{}, "AWS::EC2::FlowLog": &ec2.FlowLog{}, + "AWS::EC2::GatewayRouteTableAssociation": &ec2.GatewayRouteTableAssociation{}, "AWS::EC2::Host": &ec2.Host{}, "AWS::EC2::Instance": &ec2.Instance{}, "AWS::EC2::InternetGateway": &ec2.InternetGateway{}, @@ -2718,6 +2720,30 @@ func (t *Template) GetCodeBuildProjectWithName(name string) (*codebuild.Project, return nil, fmt.Errorf("resource %q of type codebuild.Project not found", name) } +// GetAllCodeBuildReportGroupResources retrieves all codebuild.ReportGroup items from an AWS CloudFormation template +func (t *Template) GetAllCodeBuildReportGroupResources() map[string]*codebuild.ReportGroup { + results := map[string]*codebuild.ReportGroup{} + for name, untyped := range t.Resources { + switch resource := untyped.(type) { + case *codebuild.ReportGroup: + results[name] = resource + } + } + return results +} + +// GetCodeBuildReportGroupWithName retrieves all codebuild.ReportGroup items from an AWS CloudFormation template +// whose logical ID matches the provided name. Returns an error if not found. +func (t *Template) GetCodeBuildReportGroupWithName(name string) (*codebuild.ReportGroup, error) { + if untyped, ok := t.Resources[name]; ok { + switch resource := untyped.(type) { + case *codebuild.ReportGroup: + return resource, nil + } + } + return nil, fmt.Errorf("resource %q of type codebuild.ReportGroup not found", name) +} + // GetAllCodeBuildSourceCredentialResources retrieves all codebuild.SourceCredential items from an AWS CloudFormation template func (t *Template) GetAllCodeBuildSourceCredentialResources() map[string]*codebuild.SourceCredential { results := map[string]*codebuild.SourceCredential{} @@ -4134,6 +4160,30 @@ func (t *Template) GetEC2FlowLogWithName(name string) (*ec2.FlowLog, error) { return nil, fmt.Errorf("resource %q of type ec2.FlowLog not found", name) } +// GetAllEC2GatewayRouteTableAssociationResources retrieves all ec2.GatewayRouteTableAssociation items from an AWS CloudFormation template +func (t *Template) GetAllEC2GatewayRouteTableAssociationResources() map[string]*ec2.GatewayRouteTableAssociation { + results := map[string]*ec2.GatewayRouteTableAssociation{} + for name, untyped := range t.Resources { + switch resource := untyped.(type) { + case *ec2.GatewayRouteTableAssociation: + results[name] = resource + } + } + return results +} + +// GetEC2GatewayRouteTableAssociationWithName retrieves all ec2.GatewayRouteTableAssociation items from an AWS CloudFormation template +// whose logical ID matches the provided name. Returns an error if not found. +func (t *Template) GetEC2GatewayRouteTableAssociationWithName(name string) (*ec2.GatewayRouteTableAssociation, error) { + if untyped, ok := t.Resources[name]; ok { + switch resource := untyped.(type) { + case *ec2.GatewayRouteTableAssociation: + return resource, nil + } + } + return nil, fmt.Errorf("resource %q of type ec2.GatewayRouteTableAssociation not found", name) +} + // GetAllEC2HostResources retrieves all ec2.Host items from an AWS CloudFormation template func (t *Template) GetAllEC2HostResources() map[string]*ec2.Host { results := map[string]*ec2.Host{} diff --git a/cloudformation/amazonmq/aws-amazonmq-broker.go b/cloudformation/amazonmq/aws-amazonmq-broker.go index 76178398fd..eafef35c10 100644 --- a/cloudformation/amazonmq/aws-amazonmq-broker.go +++ b/cloudformation/amazonmq/aws-amazonmq-broker.go @@ -100,6 +100,9 @@ type Broker struct { // 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 @@ -117,12 +120,14 @@ func (r Broker) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -136,6 +141,7 @@ func (r *Broker) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -159,5 +165,8 @@ func (r *Broker) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/amazonmq/aws-amazonmq-broker_configurationid.go b/cloudformation/amazonmq/aws-amazonmq-broker_configurationid.go index 3814fc729c..ffc14a63fe 100644 --- a/cloudformation/amazonmq/aws-amazonmq-broker_configurationid.go +++ b/cloudformation/amazonmq/aws-amazonmq-broker_configurationid.go @@ -26,6 +26,9 @@ type Broker_ConfigurationId struct { // 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 diff --git a/cloudformation/amazonmq/aws-amazonmq-broker_encryptionoptions.go b/cloudformation/amazonmq/aws-amazonmq-broker_encryptionoptions.go index c03a2f1434..942b586ca7 100644 --- a/cloudformation/amazonmq/aws-amazonmq-broker_encryptionoptions.go +++ b/cloudformation/amazonmq/aws-amazonmq-broker_encryptionoptions.go @@ -26,6 +26,9 @@ type Broker_EncryptionOptions struct { // 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 diff --git a/cloudformation/amazonmq/aws-amazonmq-broker_loglist.go b/cloudformation/amazonmq/aws-amazonmq-broker_loglist.go index edd544fc14..9ecf6c80ec 100644 --- a/cloudformation/amazonmq/aws-amazonmq-broker_loglist.go +++ b/cloudformation/amazonmq/aws-amazonmq-broker_loglist.go @@ -26,6 +26,9 @@ type Broker_LogList struct { // 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 diff --git a/cloudformation/amazonmq/aws-amazonmq-broker_maintenancewindow.go b/cloudformation/amazonmq/aws-amazonmq-broker_maintenancewindow.go index 6b9f8a76e3..5b44da74a5 100644 --- a/cloudformation/amazonmq/aws-amazonmq-broker_maintenancewindow.go +++ b/cloudformation/amazonmq/aws-amazonmq-broker_maintenancewindow.go @@ -31,6 +31,9 @@ type Broker_MaintenanceWindow struct { // 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 diff --git a/cloudformation/amazonmq/aws-amazonmq-broker_tagsentry.go b/cloudformation/amazonmq/aws-amazonmq-broker_tagsentry.go index 1c6dacdb61..838604a74b 100644 --- a/cloudformation/amazonmq/aws-amazonmq-broker_tagsentry.go +++ b/cloudformation/amazonmq/aws-amazonmq-broker_tagsentry.go @@ -26,6 +26,9 @@ type Broker_TagsEntry struct { // 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 diff --git a/cloudformation/amazonmq/aws-amazonmq-broker_user.go b/cloudformation/amazonmq/aws-amazonmq-broker_user.go index f21e3d5cb2..64f1d45fc1 100644 --- a/cloudformation/amazonmq/aws-amazonmq-broker_user.go +++ b/cloudformation/amazonmq/aws-amazonmq-broker_user.go @@ -36,6 +36,9 @@ type Broker_User struct { // 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 diff --git a/cloudformation/amazonmq/aws-amazonmq-configuration.go b/cloudformation/amazonmq/aws-amazonmq-configuration.go index 1e4e94437e..0824e9380a 100644 --- a/cloudformation/amazonmq/aws-amazonmq-configuration.go +++ b/cloudformation/amazonmq/aws-amazonmq-configuration.go @@ -50,6 +50,9 @@ type Configuration struct { // 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 @@ -67,12 +70,14 @@ func (r Configuration) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -86,6 +91,7 @@ func (r *Configuration) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -109,5 +115,8 @@ func (r *Configuration) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/amazonmq/aws-amazonmq-configuration_tagsentry.go b/cloudformation/amazonmq/aws-amazonmq-configuration_tagsentry.go index 563a74f379..1c4b6642e8 100644 --- a/cloudformation/amazonmq/aws-amazonmq-configuration_tagsentry.go +++ b/cloudformation/amazonmq/aws-amazonmq-configuration_tagsentry.go @@ -26,6 +26,9 @@ type Configuration_TagsEntry struct { // 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 diff --git a/cloudformation/amazonmq/aws-amazonmq-configurationassociation.go b/cloudformation/amazonmq/aws-amazonmq-configurationassociation.go index 7e7c6ae2ef..ec17783648 100644 --- a/cloudformation/amazonmq/aws-amazonmq-configurationassociation.go +++ b/cloudformation/amazonmq/aws-amazonmq-configurationassociation.go @@ -30,6 +30,9 @@ type ConfigurationAssociation struct { // 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 @@ -47,12 +50,14 @@ func (r ConfigurationAssociation) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -66,6 +71,7 @@ func (r *ConfigurationAssociation) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -89,5 +95,8 @@ func (r *ConfigurationAssociation) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/amazonmq/aws-amazonmq-configurationassociation_configurationid.go b/cloudformation/amazonmq/aws-amazonmq-configurationassociation_configurationid.go index ced439b157..01ec1685f1 100644 --- a/cloudformation/amazonmq/aws-amazonmq-configurationassociation_configurationid.go +++ b/cloudformation/amazonmq/aws-amazonmq-configurationassociation_configurationid.go @@ -26,6 +26,9 @@ type ConfigurationAssociation_ConfigurationId struct { // 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 diff --git a/cloudformation/amplify/aws-amplify-app.go b/cloudformation/amplify/aws-amplify-app.go index 3e5ab0297c..98e311de68 100644 --- a/cloudformation/amplify/aws-amplify-app.go +++ b/cloudformation/amplify/aws-amplify-app.go @@ -81,6 +81,9 @@ type App struct { // 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 @@ -98,12 +101,14 @@ func (r App) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -117,6 +122,7 @@ func (r *App) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -140,5 +146,8 @@ func (r *App) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/amplify/aws-amplify-app_autobranchcreationconfig.go b/cloudformation/amplify/aws-amplify-app_autobranchcreationconfig.go index b0f81a89a5..32a4059a6e 100644 --- a/cloudformation/amplify/aws-amplify-app_autobranchcreationconfig.go +++ b/cloudformation/amplify/aws-amplify-app_autobranchcreationconfig.go @@ -61,6 +61,9 @@ type App_AutoBranchCreationConfig struct { // 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 diff --git a/cloudformation/amplify/aws-amplify-app_basicauthconfig.go b/cloudformation/amplify/aws-amplify-app_basicauthconfig.go index a87d07443a..544f202f1a 100644 --- a/cloudformation/amplify/aws-amplify-app_basicauthconfig.go +++ b/cloudformation/amplify/aws-amplify-app_basicauthconfig.go @@ -31,6 +31,9 @@ type App_BasicAuthConfig struct { // 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 diff --git a/cloudformation/amplify/aws-amplify-app_customrule.go b/cloudformation/amplify/aws-amplify-app_customrule.go index aa8436bb2b..4e16060c3f 100644 --- a/cloudformation/amplify/aws-amplify-app_customrule.go +++ b/cloudformation/amplify/aws-amplify-app_customrule.go @@ -36,6 +36,9 @@ type App_CustomRule struct { // 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 diff --git a/cloudformation/amplify/aws-amplify-app_environmentvariable.go b/cloudformation/amplify/aws-amplify-app_environmentvariable.go index 91b35077b3..afe1cc78a3 100644 --- a/cloudformation/amplify/aws-amplify-app_environmentvariable.go +++ b/cloudformation/amplify/aws-amplify-app_environmentvariable.go @@ -26,6 +26,9 @@ type App_EnvironmentVariable struct { // 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 diff --git a/cloudformation/amplify/aws-amplify-branch.go b/cloudformation/amplify/aws-amplify-branch.go index 9a4b702295..dcc5d4496e 100644 --- a/cloudformation/amplify/aws-amplify-branch.go +++ b/cloudformation/amplify/aws-amplify-branch.go @@ -76,6 +76,9 @@ type Branch struct { // 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 @@ -93,12 +96,14 @@ func (r Branch) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -112,6 +117,7 @@ func (r *Branch) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -135,5 +141,8 @@ func (r *Branch) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/amplify/aws-amplify-branch_basicauthconfig.go b/cloudformation/amplify/aws-amplify-branch_basicauthconfig.go index e9192f957e..f3d3731b26 100644 --- a/cloudformation/amplify/aws-amplify-branch_basicauthconfig.go +++ b/cloudformation/amplify/aws-amplify-branch_basicauthconfig.go @@ -31,6 +31,9 @@ type Branch_BasicAuthConfig struct { // 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 diff --git a/cloudformation/amplify/aws-amplify-branch_environmentvariable.go b/cloudformation/amplify/aws-amplify-branch_environmentvariable.go index 3a9f122b03..db91498c27 100644 --- a/cloudformation/amplify/aws-amplify-branch_environmentvariable.go +++ b/cloudformation/amplify/aws-amplify-branch_environmentvariable.go @@ -26,6 +26,9 @@ type Branch_EnvironmentVariable struct { // 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 diff --git a/cloudformation/amplify/aws-amplify-domain.go b/cloudformation/amplify/aws-amplify-domain.go index 052cd88235..5e2db09d12 100644 --- a/cloudformation/amplify/aws-amplify-domain.go +++ b/cloudformation/amplify/aws-amplify-domain.go @@ -35,6 +35,9 @@ type Domain struct { // 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 @@ -52,12 +55,14 @@ func (r Domain) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -71,6 +76,7 @@ func (r *Domain) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -94,5 +100,8 @@ func (r *Domain) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/amplify/aws-amplify-domain_subdomainsetting.go b/cloudformation/amplify/aws-amplify-domain_subdomainsetting.go index d85eacb219..5a85dd90f8 100644 --- a/cloudformation/amplify/aws-amplify-domain_subdomainsetting.go +++ b/cloudformation/amplify/aws-amplify-domain_subdomainsetting.go @@ -26,6 +26,9 @@ type Domain_SubDomainSetting struct { // 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 diff --git a/cloudformation/apigateway/aws-apigateway-account.go b/cloudformation/apigateway/aws-apigateway-account.go index 8de4d7256d..21557b03c5 100644 --- a/cloudformation/apigateway/aws-apigateway-account.go +++ b/cloudformation/apigateway/aws-apigateway-account.go @@ -25,6 +25,9 @@ type Account struct { // 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 @@ -42,12 +45,14 @@ func (r Account) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -61,6 +66,7 @@ func (r *Account) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -84,5 +90,8 @@ func (r *Account) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/apigateway/aws-apigateway-apikey.go b/cloudformation/apigateway/aws-apigateway-apikey.go index ffac08ee0a..b91d61c4d0 100644 --- a/cloudformation/apigateway/aws-apigateway-apikey.go +++ b/cloudformation/apigateway/aws-apigateway-apikey.go @@ -61,6 +61,9 @@ type ApiKey struct { // 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 @@ -78,12 +81,14 @@ func (r ApiKey) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -97,6 +102,7 @@ func (r *ApiKey) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -120,5 +126,8 @@ func (r *ApiKey) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/apigateway/aws-apigateway-apikey_stagekey.go b/cloudformation/apigateway/aws-apigateway-apikey_stagekey.go index 24c92a8543..8be053d99f 100644 --- a/cloudformation/apigateway/aws-apigateway-apikey_stagekey.go +++ b/cloudformation/apigateway/aws-apigateway-apikey_stagekey.go @@ -26,6 +26,9 @@ type ApiKey_StageKey struct { // 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 diff --git a/cloudformation/apigateway/aws-apigateway-authorizer.go b/cloudformation/apigateway/aws-apigateway-authorizer.go index eea096a662..b87a299ee0 100644 --- a/cloudformation/apigateway/aws-apigateway-authorizer.go +++ b/cloudformation/apigateway/aws-apigateway-authorizer.go @@ -70,6 +70,9 @@ type Authorizer struct { // 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 @@ -87,12 +90,14 @@ func (r Authorizer) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -106,6 +111,7 @@ func (r *Authorizer) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -129,5 +135,8 @@ func (r *Authorizer) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/apigateway/aws-apigateway-basepathmapping.go b/cloudformation/apigateway/aws-apigateway-basepathmapping.go index a9d6893c58..331677d422 100644 --- a/cloudformation/apigateway/aws-apigateway-basepathmapping.go +++ b/cloudformation/apigateway/aws-apigateway-basepathmapping.go @@ -40,6 +40,9 @@ type BasePathMapping struct { // 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 @@ -57,12 +60,14 @@ func (r BasePathMapping) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -76,6 +81,7 @@ func (r *BasePathMapping) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -99,5 +105,8 @@ func (r *BasePathMapping) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/apigateway/aws-apigateway-clientcertificate.go b/cloudformation/apigateway/aws-apigateway-clientcertificate.go index 2664dc2af1..6870f72c3f 100644 --- a/cloudformation/apigateway/aws-apigateway-clientcertificate.go +++ b/cloudformation/apigateway/aws-apigateway-clientcertificate.go @@ -31,6 +31,9 @@ type ClientCertificate struct { // 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 @@ -48,12 +51,14 @@ func (r ClientCertificate) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -67,6 +72,7 @@ func (r *ClientCertificate) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -90,5 +96,8 @@ func (r *ClientCertificate) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/apigateway/aws-apigateway-deployment.go b/cloudformation/apigateway/aws-apigateway-deployment.go index 87e3aeb0ab..7dc36b1a62 100644 --- a/cloudformation/apigateway/aws-apigateway-deployment.go +++ b/cloudformation/apigateway/aws-apigateway-deployment.go @@ -45,6 +45,9 @@ type Deployment struct { // 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 @@ -62,12 +65,14 @@ func (r Deployment) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -81,6 +86,7 @@ func (r *Deployment) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -104,5 +110,8 @@ func (r *Deployment) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/apigateway/aws-apigateway-deployment_accesslogsetting.go b/cloudformation/apigateway/aws-apigateway-deployment_accesslogsetting.go index 53e8c1ccc6..8051af89b2 100644 --- a/cloudformation/apigateway/aws-apigateway-deployment_accesslogsetting.go +++ b/cloudformation/apigateway/aws-apigateway-deployment_accesslogsetting.go @@ -26,6 +26,9 @@ type Deployment_AccessLogSetting struct { // 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 diff --git a/cloudformation/apigateway/aws-apigateway-deployment_canarysetting.go b/cloudformation/apigateway/aws-apigateway-deployment_canarysetting.go index f43c45a12e..79e1a9e07f 100644 --- a/cloudformation/apigateway/aws-apigateway-deployment_canarysetting.go +++ b/cloudformation/apigateway/aws-apigateway-deployment_canarysetting.go @@ -31,6 +31,9 @@ type Deployment_CanarySetting struct { // 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 diff --git a/cloudformation/apigateway/aws-apigateway-deployment_deploymentcanarysettings.go b/cloudformation/apigateway/aws-apigateway-deployment_deploymentcanarysettings.go index 79e4e5e9bc..c25f2849a4 100644 --- a/cloudformation/apigateway/aws-apigateway-deployment_deploymentcanarysettings.go +++ b/cloudformation/apigateway/aws-apigateway-deployment_deploymentcanarysettings.go @@ -31,6 +31,9 @@ type Deployment_DeploymentCanarySettings struct { // 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 diff --git a/cloudformation/apigateway/aws-apigateway-deployment_methodsetting.go b/cloudformation/apigateway/aws-apigateway-deployment_methodsetting.go index e3552afa2d..2963da97a6 100644 --- a/cloudformation/apigateway/aws-apigateway-deployment_methodsetting.go +++ b/cloudformation/apigateway/aws-apigateway-deployment_methodsetting.go @@ -66,6 +66,9 @@ type Deployment_MethodSetting struct { // 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 diff --git a/cloudformation/apigateway/aws-apigateway-deployment_stagedescription.go b/cloudformation/apigateway/aws-apigateway-deployment_stagedescription.go index bcff5839a2..006d9676de 100644 --- a/cloudformation/apigateway/aws-apigateway-deployment_stagedescription.go +++ b/cloudformation/apigateway/aws-apigateway-deployment_stagedescription.go @@ -112,6 +112,9 @@ type Deployment_StageDescription struct { // 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 diff --git a/cloudformation/apigateway/aws-apigateway-documentationpart.go b/cloudformation/apigateway/aws-apigateway-documentationpart.go index 59aa61fb52..4f9cca6c04 100644 --- a/cloudformation/apigateway/aws-apigateway-documentationpart.go +++ b/cloudformation/apigateway/aws-apigateway-documentationpart.go @@ -35,6 +35,9 @@ type DocumentationPart struct { // 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 @@ -52,12 +55,14 @@ func (r DocumentationPart) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -71,6 +76,7 @@ func (r *DocumentationPart) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -94,5 +100,8 @@ func (r *DocumentationPart) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/apigateway/aws-apigateway-documentationpart_location.go b/cloudformation/apigateway/aws-apigateway-documentationpart_location.go index f8665f45e6..642b951e4e 100644 --- a/cloudformation/apigateway/aws-apigateway-documentationpart_location.go +++ b/cloudformation/apigateway/aws-apigateway-documentationpart_location.go @@ -41,6 +41,9 @@ type DocumentationPart_Location struct { // 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 diff --git a/cloudformation/apigateway/aws-apigateway-documentationversion.go b/cloudformation/apigateway/aws-apigateway-documentationversion.go index 9c3bc46415..9a69d2cf92 100644 --- a/cloudformation/apigateway/aws-apigateway-documentationversion.go +++ b/cloudformation/apigateway/aws-apigateway-documentationversion.go @@ -35,6 +35,9 @@ type DocumentationVersion struct { // 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 @@ -52,12 +55,14 @@ func (r DocumentationVersion) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -71,6 +76,7 @@ func (r *DocumentationVersion) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -94,5 +100,8 @@ func (r *DocumentationVersion) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/apigateway/aws-apigateway-domainname.go b/cloudformation/apigateway/aws-apigateway-domainname.go index b6e09c1096..59ee5c90f6 100644 --- a/cloudformation/apigateway/aws-apigateway-domainname.go +++ b/cloudformation/apigateway/aws-apigateway-domainname.go @@ -51,6 +51,9 @@ type DomainName struct { // 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 @@ -68,12 +71,14 @@ func (r DomainName) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -87,6 +92,7 @@ func (r *DomainName) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -110,5 +116,8 @@ func (r *DomainName) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/apigateway/aws-apigateway-domainname_endpointconfiguration.go b/cloudformation/apigateway/aws-apigateway-domainname_endpointconfiguration.go index 7e29049ceb..77c39f4419 100644 --- a/cloudformation/apigateway/aws-apigateway-domainname_endpointconfiguration.go +++ b/cloudformation/apigateway/aws-apigateway-domainname_endpointconfiguration.go @@ -21,6 +21,9 @@ type DomainName_EndpointConfiguration struct { // 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 diff --git a/cloudformation/apigateway/aws-apigateway-gatewayresponse.go b/cloudformation/apigateway/aws-apigateway-gatewayresponse.go index 22e278c2eb..421cce638d 100644 --- a/cloudformation/apigateway/aws-apigateway-gatewayresponse.go +++ b/cloudformation/apigateway/aws-apigateway-gatewayresponse.go @@ -45,6 +45,9 @@ type GatewayResponse struct { // 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 @@ -62,12 +65,14 @@ func (r GatewayResponse) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -81,6 +86,7 @@ func (r *GatewayResponse) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -104,5 +110,8 @@ func (r *GatewayResponse) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/apigateway/aws-apigateway-method.go b/cloudformation/apigateway/aws-apigateway-method.go index 625c1374d4..61fa0c061c 100644 --- a/cloudformation/apigateway/aws-apigateway-method.go +++ b/cloudformation/apigateway/aws-apigateway-method.go @@ -85,6 +85,9 @@ type Method struct { // 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 @@ -102,12 +105,14 @@ func (r Method) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -121,6 +126,7 @@ func (r *Method) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -144,5 +150,8 @@ func (r *Method) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/apigateway/aws-apigateway-method_integration.go b/cloudformation/apigateway/aws-apigateway-method_integration.go index 5ca358c4f8..2a4cb27018 100644 --- a/cloudformation/apigateway/aws-apigateway-method_integration.go +++ b/cloudformation/apigateway/aws-apigateway-method_integration.go @@ -86,6 +86,9 @@ type Method_Integration struct { // 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 diff --git a/cloudformation/apigateway/aws-apigateway-method_integrationresponse.go b/cloudformation/apigateway/aws-apigateway-method_integrationresponse.go index 5772b65997..2ccde46425 100644 --- a/cloudformation/apigateway/aws-apigateway-method_integrationresponse.go +++ b/cloudformation/apigateway/aws-apigateway-method_integrationresponse.go @@ -41,6 +41,9 @@ type Method_IntegrationResponse struct { // 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 diff --git a/cloudformation/apigateway/aws-apigateway-method_methodresponse.go b/cloudformation/apigateway/aws-apigateway-method_methodresponse.go index b7a1bff9b5..68fc18a499 100644 --- a/cloudformation/apigateway/aws-apigateway-method_methodresponse.go +++ b/cloudformation/apigateway/aws-apigateway-method_methodresponse.go @@ -31,6 +31,9 @@ type Method_MethodResponse struct { // 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 diff --git a/cloudformation/apigateway/aws-apigateway-model.go b/cloudformation/apigateway/aws-apigateway-model.go index 37a4a7c8e0..9cc5b18e49 100644 --- a/cloudformation/apigateway/aws-apigateway-model.go +++ b/cloudformation/apigateway/aws-apigateway-model.go @@ -45,6 +45,9 @@ type Model struct { // 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 @@ -62,12 +65,14 @@ func (r Model) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -81,6 +86,7 @@ func (r *Model) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -104,5 +110,8 @@ func (r *Model) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/apigateway/aws-apigateway-requestvalidator.go b/cloudformation/apigateway/aws-apigateway-requestvalidator.go index f3bdfe5548..efd9a2a7e9 100644 --- a/cloudformation/apigateway/aws-apigateway-requestvalidator.go +++ b/cloudformation/apigateway/aws-apigateway-requestvalidator.go @@ -40,6 +40,9 @@ type RequestValidator struct { // 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 @@ -57,12 +60,14 @@ func (r RequestValidator) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -76,6 +81,7 @@ func (r *RequestValidator) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -99,5 +105,8 @@ func (r *RequestValidator) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/apigateway/aws-apigateway-resource.go b/cloudformation/apigateway/aws-apigateway-resource.go index d7e453e619..0e3b5b8312 100644 --- a/cloudformation/apigateway/aws-apigateway-resource.go +++ b/cloudformation/apigateway/aws-apigateway-resource.go @@ -35,6 +35,9 @@ type Resource struct { // 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 @@ -52,12 +55,14 @@ func (r Resource) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -71,6 +76,7 @@ func (r *Resource) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -94,5 +100,8 @@ func (r *Resource) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/apigateway/aws-apigateway-restapi.go b/cloudformation/apigateway/aws-apigateway-restapi.go index 7a374c2919..05fc725cc5 100644 --- a/cloudformation/apigateway/aws-apigateway-restapi.go +++ b/cloudformation/apigateway/aws-apigateway-restapi.go @@ -86,6 +86,9 @@ type RestApi struct { // 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 @@ -103,12 +106,14 @@ func (r RestApi) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -122,6 +127,7 @@ func (r *RestApi) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -145,5 +151,8 @@ func (r *RestApi) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/apigateway/aws-apigateway-restapi_endpointconfiguration.go b/cloudformation/apigateway/aws-apigateway-restapi_endpointconfiguration.go index b6f550421b..25a092d00f 100644 --- a/cloudformation/apigateway/aws-apigateway-restapi_endpointconfiguration.go +++ b/cloudformation/apigateway/aws-apigateway-restapi_endpointconfiguration.go @@ -26,6 +26,9 @@ type RestApi_EndpointConfiguration struct { // 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 diff --git a/cloudformation/apigateway/aws-apigateway-restapi_s3location.go b/cloudformation/apigateway/aws-apigateway-restapi_s3location.go index f0ea6d8ebc..014e11df8c 100644 --- a/cloudformation/apigateway/aws-apigateway-restapi_s3location.go +++ b/cloudformation/apigateway/aws-apigateway-restapi_s3location.go @@ -36,6 +36,9 @@ type RestApi_S3Location struct { // 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 diff --git a/cloudformation/apigateway/aws-apigateway-stage.go b/cloudformation/apigateway/aws-apigateway-stage.go index 69543a33b4..289c378304 100644 --- a/cloudformation/apigateway/aws-apigateway-stage.go +++ b/cloudformation/apigateway/aws-apigateway-stage.go @@ -91,6 +91,9 @@ type Stage struct { // 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 @@ -108,12 +111,14 @@ func (r Stage) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -127,6 +132,7 @@ func (r *Stage) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -150,5 +156,8 @@ func (r *Stage) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/apigateway/aws-apigateway-stage_accesslogsetting.go b/cloudformation/apigateway/aws-apigateway-stage_accesslogsetting.go index 2c0e49c7fe..3986202403 100644 --- a/cloudformation/apigateway/aws-apigateway-stage_accesslogsetting.go +++ b/cloudformation/apigateway/aws-apigateway-stage_accesslogsetting.go @@ -26,6 +26,9 @@ type Stage_AccessLogSetting struct { // 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 diff --git a/cloudformation/apigateway/aws-apigateway-stage_canarysetting.go b/cloudformation/apigateway/aws-apigateway-stage_canarysetting.go index d24b63d581..977d307055 100644 --- a/cloudformation/apigateway/aws-apigateway-stage_canarysetting.go +++ b/cloudformation/apigateway/aws-apigateway-stage_canarysetting.go @@ -36,6 +36,9 @@ type Stage_CanarySetting struct { // 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 diff --git a/cloudformation/apigateway/aws-apigateway-stage_methodsetting.go b/cloudformation/apigateway/aws-apigateway-stage_methodsetting.go index 973bb73f89..25f3816aa3 100644 --- a/cloudformation/apigateway/aws-apigateway-stage_methodsetting.go +++ b/cloudformation/apigateway/aws-apigateway-stage_methodsetting.go @@ -66,6 +66,9 @@ type Stage_MethodSetting struct { // 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 diff --git a/cloudformation/apigateway/aws-apigateway-usageplan.go b/cloudformation/apigateway/aws-apigateway-usageplan.go index 81a037bab8..5aed011c4a 100644 --- a/cloudformation/apigateway/aws-apigateway-usageplan.go +++ b/cloudformation/apigateway/aws-apigateway-usageplan.go @@ -51,6 +51,9 @@ type UsagePlan struct { // 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 @@ -68,12 +71,14 @@ func (r UsagePlan) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -87,6 +92,7 @@ func (r *UsagePlan) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -110,5 +116,8 @@ func (r *UsagePlan) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/apigateway/aws-apigateway-usageplan_apistage.go b/cloudformation/apigateway/aws-apigateway-usageplan_apistage.go index bbc4e150cd..c73ffee1e2 100644 --- a/cloudformation/apigateway/aws-apigateway-usageplan_apistage.go +++ b/cloudformation/apigateway/aws-apigateway-usageplan_apistage.go @@ -31,6 +31,9 @@ type UsagePlan_ApiStage struct { // 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 diff --git a/cloudformation/apigateway/aws-apigateway-usageplan_quotasettings.go b/cloudformation/apigateway/aws-apigateway-usageplan_quotasettings.go index a106c0d3cc..bfab0dd1ce 100644 --- a/cloudformation/apigateway/aws-apigateway-usageplan_quotasettings.go +++ b/cloudformation/apigateway/aws-apigateway-usageplan_quotasettings.go @@ -31,6 +31,9 @@ type UsagePlan_QuotaSettings struct { // 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 diff --git a/cloudformation/apigateway/aws-apigateway-usageplan_throttlesettings.go b/cloudformation/apigateway/aws-apigateway-usageplan_throttlesettings.go index 11e253d62d..1c22f6ab9b 100644 --- a/cloudformation/apigateway/aws-apigateway-usageplan_throttlesettings.go +++ b/cloudformation/apigateway/aws-apigateway-usageplan_throttlesettings.go @@ -26,6 +26,9 @@ type UsagePlan_ThrottleSettings struct { // 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 diff --git a/cloudformation/apigateway/aws-apigateway-usageplankey.go b/cloudformation/apigateway/aws-apigateway-usageplankey.go index ab00040087..94c7160653 100644 --- a/cloudformation/apigateway/aws-apigateway-usageplankey.go +++ b/cloudformation/apigateway/aws-apigateway-usageplankey.go @@ -35,6 +35,9 @@ type UsagePlanKey struct { // 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 @@ -52,12 +55,14 @@ func (r UsagePlanKey) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -71,6 +76,7 @@ func (r *UsagePlanKey) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -94,5 +100,8 @@ func (r *UsagePlanKey) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/apigateway/aws-apigateway-vpclink.go b/cloudformation/apigateway/aws-apigateway-vpclink.go index 0874647bc9..64a6301ab8 100644 --- a/cloudformation/apigateway/aws-apigateway-vpclink.go +++ b/cloudformation/apigateway/aws-apigateway-vpclink.go @@ -35,6 +35,9 @@ type VpcLink struct { // 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 @@ -52,12 +55,14 @@ func (r VpcLink) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -71,6 +76,7 @@ func (r *VpcLink) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -94,5 +100,8 @@ func (r *VpcLink) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/apigatewayv2/aws-apigatewayv2-api.go b/cloudformation/apigatewayv2/aws-apigatewayv2-api.go index a213f7f989..b17a761073 100644 --- a/cloudformation/apigatewayv2/aws-apigatewayv2-api.go +++ b/cloudformation/apigatewayv2/aws-apigatewayv2-api.go @@ -100,6 +100,9 @@ type Api struct { // 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 @@ -117,12 +120,14 @@ func (r Api) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -136,6 +141,7 @@ func (r *Api) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -159,5 +165,8 @@ func (r *Api) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/apigatewayv2/aws-apigatewayv2-api_bodys3location.go b/cloudformation/apigatewayv2/aws-apigatewayv2-api_bodys3location.go index 0488ecccc3..ec2dbd49f5 100644 --- a/cloudformation/apigatewayv2/aws-apigatewayv2-api_bodys3location.go +++ b/cloudformation/apigatewayv2/aws-apigatewayv2-api_bodys3location.go @@ -36,6 +36,9 @@ type Api_BodyS3Location struct { // 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 diff --git a/cloudformation/apigatewayv2/aws-apigatewayv2-api_cors.go b/cloudformation/apigatewayv2/aws-apigatewayv2-api_cors.go index 2ed81b14c8..b4f0a979dc 100644 --- a/cloudformation/apigatewayv2/aws-apigatewayv2-api_cors.go +++ b/cloudformation/apigatewayv2/aws-apigatewayv2-api_cors.go @@ -46,6 +46,9 @@ type Api_Cors struct { // 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 diff --git a/cloudformation/apigatewayv2/aws-apigatewayv2-apimapping.go b/cloudformation/apigatewayv2/aws-apigatewayv2-apimapping.go index 5b8b85c3f6..ac86b89ce0 100644 --- a/cloudformation/apigatewayv2/aws-apigatewayv2-apimapping.go +++ b/cloudformation/apigatewayv2/aws-apigatewayv2-apimapping.go @@ -40,6 +40,9 @@ type ApiMapping struct { // 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 @@ -57,12 +60,14 @@ func (r ApiMapping) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -76,6 +81,7 @@ func (r *ApiMapping) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -99,5 +105,8 @@ func (r *ApiMapping) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/apigatewayv2/aws-apigatewayv2-authorizer.go b/cloudformation/apigatewayv2/aws-apigatewayv2-authorizer.go index f0a840ca5b..ef0531fac8 100644 --- a/cloudformation/apigatewayv2/aws-apigatewayv2-authorizer.go +++ b/cloudformation/apigatewayv2/aws-apigatewayv2-authorizer.go @@ -65,6 +65,9 @@ type Authorizer struct { // 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 @@ -82,12 +85,14 @@ func (r Authorizer) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -101,6 +106,7 @@ func (r *Authorizer) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -124,5 +130,8 @@ func (r *Authorizer) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/apigatewayv2/aws-apigatewayv2-authorizer_jwtconfiguration.go b/cloudformation/apigatewayv2/aws-apigatewayv2-authorizer_jwtconfiguration.go index 9147d0c536..0a6132c958 100644 --- a/cloudformation/apigatewayv2/aws-apigatewayv2-authorizer_jwtconfiguration.go +++ b/cloudformation/apigatewayv2/aws-apigatewayv2-authorizer_jwtconfiguration.go @@ -26,6 +26,9 @@ type Authorizer_JWTConfiguration struct { // 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 diff --git a/cloudformation/apigatewayv2/aws-apigatewayv2-deployment.go b/cloudformation/apigatewayv2/aws-apigatewayv2-deployment.go index b161ddbf79..557a799a12 100644 --- a/cloudformation/apigatewayv2/aws-apigatewayv2-deployment.go +++ b/cloudformation/apigatewayv2/aws-apigatewayv2-deployment.go @@ -35,6 +35,9 @@ type Deployment struct { // 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 @@ -52,12 +55,14 @@ func (r Deployment) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -71,6 +76,7 @@ func (r *Deployment) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -94,5 +100,8 @@ func (r *Deployment) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/apigatewayv2/aws-apigatewayv2-domainname.go b/cloudformation/apigatewayv2/aws-apigatewayv2-domainname.go index 9d88502ca6..33627b847f 100644 --- a/cloudformation/apigatewayv2/aws-apigatewayv2-domainname.go +++ b/cloudformation/apigatewayv2/aws-apigatewayv2-domainname.go @@ -35,6 +35,9 @@ type DomainName struct { // 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 @@ -52,12 +55,14 @@ func (r DomainName) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -71,6 +76,7 @@ func (r *DomainName) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -94,5 +100,8 @@ func (r *DomainName) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/apigatewayv2/aws-apigatewayv2-domainname_domainnameconfiguration.go b/cloudformation/apigatewayv2/aws-apigatewayv2-domainname_domainnameconfiguration.go index 8851fed300..870d87c98f 100644 --- a/cloudformation/apigatewayv2/aws-apigatewayv2-domainname_domainnameconfiguration.go +++ b/cloudformation/apigatewayv2/aws-apigatewayv2-domainname_domainnameconfiguration.go @@ -31,6 +31,9 @@ type DomainName_DomainNameConfiguration struct { // 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 diff --git a/cloudformation/apigatewayv2/aws-apigatewayv2-integration.go b/cloudformation/apigatewayv2/aws-apigatewayv2-integration.go index 67b0f9e3aa..0700a4b7cd 100644 --- a/cloudformation/apigatewayv2/aws-apigatewayv2-integration.go +++ b/cloudformation/apigatewayv2/aws-apigatewayv2-integration.go @@ -90,6 +90,9 @@ type Integration struct { // 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 @@ -107,12 +110,14 @@ func (r Integration) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -126,6 +131,7 @@ func (r *Integration) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -149,5 +155,8 @@ func (r *Integration) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/apigatewayv2/aws-apigatewayv2-integrationresponse.go b/cloudformation/apigatewayv2/aws-apigatewayv2-integrationresponse.go index 3a8a920841..4c1a6d584f 100644 --- a/cloudformation/apigatewayv2/aws-apigatewayv2-integrationresponse.go +++ b/cloudformation/apigatewayv2/aws-apigatewayv2-integrationresponse.go @@ -55,6 +55,9 @@ type IntegrationResponse struct { // 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 @@ -72,12 +75,14 @@ func (r IntegrationResponse) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -91,6 +96,7 @@ func (r *IntegrationResponse) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -114,5 +120,8 @@ func (r *IntegrationResponse) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/apigatewayv2/aws-apigatewayv2-model.go b/cloudformation/apigatewayv2/aws-apigatewayv2-model.go index 90b3704908..ba10adfcb7 100644 --- a/cloudformation/apigatewayv2/aws-apigatewayv2-model.go +++ b/cloudformation/apigatewayv2/aws-apigatewayv2-model.go @@ -45,6 +45,9 @@ type Model struct { // 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 @@ -62,12 +65,14 @@ func (r Model) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -81,6 +86,7 @@ func (r *Model) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -104,5 +110,8 @@ func (r *Model) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/apigatewayv2/aws-apigatewayv2-route.go b/cloudformation/apigatewayv2/aws-apigatewayv2-route.go index 6928d59e3b..68e540c737 100644 --- a/cloudformation/apigatewayv2/aws-apigatewayv2-route.go +++ b/cloudformation/apigatewayv2/aws-apigatewayv2-route.go @@ -80,6 +80,9 @@ type Route struct { // 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 @@ -97,12 +100,14 @@ func (r Route) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -116,6 +121,7 @@ func (r *Route) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -139,5 +145,8 @@ func (r *Route) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/apigatewayv2/aws-apigatewayv2-route_parameterconstraints.go b/cloudformation/apigatewayv2/aws-apigatewayv2-route_parameterconstraints.go index 6c7b49efde..2e99e1222e 100644 --- a/cloudformation/apigatewayv2/aws-apigatewayv2-route_parameterconstraints.go +++ b/cloudformation/apigatewayv2/aws-apigatewayv2-route_parameterconstraints.go @@ -21,6 +21,9 @@ type Route_ParameterConstraints struct { // 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 diff --git a/cloudformation/apigatewayv2/aws-apigatewayv2-routeresponse.go b/cloudformation/apigatewayv2/aws-apigatewayv2-routeresponse.go index 7494aa00d0..aa6f5ae416 100644 --- a/cloudformation/apigatewayv2/aws-apigatewayv2-routeresponse.go +++ b/cloudformation/apigatewayv2/aws-apigatewayv2-routeresponse.go @@ -50,6 +50,9 @@ type RouteResponse struct { // 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 @@ -67,12 +70,14 @@ func (r RouteResponse) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -86,6 +91,7 @@ func (r *RouteResponse) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -109,5 +115,8 @@ func (r *RouteResponse) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/apigatewayv2/aws-apigatewayv2-routeresponse_parameterconstraints.go b/cloudformation/apigatewayv2/aws-apigatewayv2-routeresponse_parameterconstraints.go index 0ecbaf8993..b5c1f657a6 100644 --- a/cloudformation/apigatewayv2/aws-apigatewayv2-routeresponse_parameterconstraints.go +++ b/cloudformation/apigatewayv2/aws-apigatewayv2-routeresponse_parameterconstraints.go @@ -21,6 +21,9 @@ type RouteResponse_ParameterConstraints struct { // 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 diff --git a/cloudformation/apigatewayv2/aws-apigatewayv2-stage.go b/cloudformation/apigatewayv2/aws-apigatewayv2-stage.go index ff7ed4b54d..542e60a7d6 100644 --- a/cloudformation/apigatewayv2/aws-apigatewayv2-stage.go +++ b/cloudformation/apigatewayv2/aws-apigatewayv2-stage.go @@ -75,6 +75,9 @@ type Stage struct { // 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 @@ -92,12 +95,14 @@ func (r Stage) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -111,6 +116,7 @@ func (r *Stage) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -134,5 +140,8 @@ func (r *Stage) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/apigatewayv2/aws-apigatewayv2-stage_accesslogsettings.go b/cloudformation/apigatewayv2/aws-apigatewayv2-stage_accesslogsettings.go index 15967bbf06..1f95655525 100644 --- a/cloudformation/apigatewayv2/aws-apigatewayv2-stage_accesslogsettings.go +++ b/cloudformation/apigatewayv2/aws-apigatewayv2-stage_accesslogsettings.go @@ -26,6 +26,9 @@ type Stage_AccessLogSettings struct { // 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 diff --git a/cloudformation/apigatewayv2/aws-apigatewayv2-stage_routesettings.go b/cloudformation/apigatewayv2/aws-apigatewayv2-stage_routesettings.go index 471493d436..f48dd0bb9e 100644 --- a/cloudformation/apigatewayv2/aws-apigatewayv2-stage_routesettings.go +++ b/cloudformation/apigatewayv2/aws-apigatewayv2-stage_routesettings.go @@ -41,6 +41,9 @@ type Stage_RouteSettings struct { // 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 diff --git a/cloudformation/applicationautoscaling/aws-applicationautoscaling-scalabletarget.go b/cloudformation/applicationautoscaling/aws-applicationautoscaling-scalabletarget.go index ccbe539e26..8df047957b 100644 --- a/cloudformation/applicationautoscaling/aws-applicationautoscaling-scalabletarget.go +++ b/cloudformation/applicationautoscaling/aws-applicationautoscaling-scalabletarget.go @@ -60,6 +60,9 @@ type ScalableTarget struct { // 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 @@ -77,12 +80,14 @@ func (r ScalableTarget) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -96,6 +101,7 @@ func (r *ScalableTarget) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -119,5 +125,8 @@ func (r *ScalableTarget) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/applicationautoscaling/aws-applicationautoscaling-scalabletarget_scalabletargetaction.go b/cloudformation/applicationautoscaling/aws-applicationautoscaling-scalabletarget_scalabletargetaction.go index 90938fa62d..13ba4af7af 100644 --- a/cloudformation/applicationautoscaling/aws-applicationautoscaling-scalabletarget_scalabletargetaction.go +++ b/cloudformation/applicationautoscaling/aws-applicationautoscaling-scalabletarget_scalabletargetaction.go @@ -26,6 +26,9 @@ type ScalableTarget_ScalableTargetAction struct { // 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 diff --git a/cloudformation/applicationautoscaling/aws-applicationautoscaling-scalabletarget_scheduledaction.go b/cloudformation/applicationautoscaling/aws-applicationautoscaling-scalabletarget_scheduledaction.go index 9bebf67b14..150e369259 100644 --- a/cloudformation/applicationautoscaling/aws-applicationautoscaling-scalabletarget_scheduledaction.go +++ b/cloudformation/applicationautoscaling/aws-applicationautoscaling-scalabletarget_scheduledaction.go @@ -41,6 +41,9 @@ type ScalableTarget_ScheduledAction struct { // 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 diff --git a/cloudformation/applicationautoscaling/aws-applicationautoscaling-scalabletarget_suspendedstate.go b/cloudformation/applicationautoscaling/aws-applicationautoscaling-scalabletarget_suspendedstate.go index b666c12f0f..e00fd230b8 100644 --- a/cloudformation/applicationautoscaling/aws-applicationautoscaling-scalabletarget_suspendedstate.go +++ b/cloudformation/applicationautoscaling/aws-applicationautoscaling-scalabletarget_suspendedstate.go @@ -31,6 +31,9 @@ type ScalableTarget_SuspendedState struct { // 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 diff --git a/cloudformation/applicationautoscaling/aws-applicationautoscaling-scalingpolicy.go b/cloudformation/applicationautoscaling/aws-applicationautoscaling-scalingpolicy.go index fda48b64b8..fc03cc62e5 100644 --- a/cloudformation/applicationautoscaling/aws-applicationautoscaling-scalingpolicy.go +++ b/cloudformation/applicationautoscaling/aws-applicationautoscaling-scalingpolicy.go @@ -60,6 +60,9 @@ type ScalingPolicy struct { // 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 @@ -77,12 +80,14 @@ func (r ScalingPolicy) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -96,6 +101,7 @@ func (r *ScalingPolicy) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -119,5 +125,8 @@ func (r *ScalingPolicy) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/applicationautoscaling/aws-applicationautoscaling-scalingpolicy_customizedmetricspecification.go b/cloudformation/applicationautoscaling/aws-applicationautoscaling-scalingpolicy_customizedmetricspecification.go index bcc786a4ba..16608758a8 100644 --- a/cloudformation/applicationautoscaling/aws-applicationautoscaling-scalingpolicy_customizedmetricspecification.go +++ b/cloudformation/applicationautoscaling/aws-applicationautoscaling-scalingpolicy_customizedmetricspecification.go @@ -41,6 +41,9 @@ type ScalingPolicy_CustomizedMetricSpecification struct { // 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 diff --git a/cloudformation/applicationautoscaling/aws-applicationautoscaling-scalingpolicy_metricdimension.go b/cloudformation/applicationautoscaling/aws-applicationautoscaling-scalingpolicy_metricdimension.go index 37419d16cc..55ba2ba822 100644 --- a/cloudformation/applicationautoscaling/aws-applicationautoscaling-scalingpolicy_metricdimension.go +++ b/cloudformation/applicationautoscaling/aws-applicationautoscaling-scalingpolicy_metricdimension.go @@ -26,6 +26,9 @@ type ScalingPolicy_MetricDimension struct { // 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 diff --git a/cloudformation/applicationautoscaling/aws-applicationautoscaling-scalingpolicy_predefinedmetricspecification.go b/cloudformation/applicationautoscaling/aws-applicationautoscaling-scalingpolicy_predefinedmetricspecification.go index 08d0aa960f..0a9aa57d48 100644 --- a/cloudformation/applicationautoscaling/aws-applicationautoscaling-scalingpolicy_predefinedmetricspecification.go +++ b/cloudformation/applicationautoscaling/aws-applicationautoscaling-scalingpolicy_predefinedmetricspecification.go @@ -26,6 +26,9 @@ type ScalingPolicy_PredefinedMetricSpecification struct { // 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 diff --git a/cloudformation/applicationautoscaling/aws-applicationautoscaling-scalingpolicy_stepadjustment.go b/cloudformation/applicationautoscaling/aws-applicationautoscaling-scalingpolicy_stepadjustment.go index d424b72736..28639a463f 100644 --- a/cloudformation/applicationautoscaling/aws-applicationautoscaling-scalingpolicy_stepadjustment.go +++ b/cloudformation/applicationautoscaling/aws-applicationautoscaling-scalingpolicy_stepadjustment.go @@ -31,6 +31,9 @@ type ScalingPolicy_StepAdjustment struct { // 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 diff --git a/cloudformation/applicationautoscaling/aws-applicationautoscaling-scalingpolicy_stepscalingpolicyconfiguration.go b/cloudformation/applicationautoscaling/aws-applicationautoscaling-scalingpolicy_stepscalingpolicyconfiguration.go index 2973084ae1..53ca2de258 100644 --- a/cloudformation/applicationautoscaling/aws-applicationautoscaling-scalingpolicy_stepscalingpolicyconfiguration.go +++ b/cloudformation/applicationautoscaling/aws-applicationautoscaling-scalingpolicy_stepscalingpolicyconfiguration.go @@ -41,6 +41,9 @@ type ScalingPolicy_StepScalingPolicyConfiguration struct { // 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 diff --git a/cloudformation/applicationautoscaling/aws-applicationautoscaling-scalingpolicy_targettrackingscalingpolicyconfiguration.go b/cloudformation/applicationautoscaling/aws-applicationautoscaling-scalingpolicy_targettrackingscalingpolicyconfiguration.go index b367640323..60557a2647 100644 --- a/cloudformation/applicationautoscaling/aws-applicationautoscaling-scalingpolicy_targettrackingscalingpolicyconfiguration.go +++ b/cloudformation/applicationautoscaling/aws-applicationautoscaling-scalingpolicy_targettrackingscalingpolicyconfiguration.go @@ -46,6 +46,9 @@ type ScalingPolicy_TargetTrackingScalingPolicyConfiguration struct { // 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 diff --git a/cloudformation/appmesh/aws-appmesh-mesh.go b/cloudformation/appmesh/aws-appmesh-mesh.go index 39149ad0e2..72912aa62e 100644 --- a/cloudformation/appmesh/aws-appmesh-mesh.go +++ b/cloudformation/appmesh/aws-appmesh-mesh.go @@ -36,6 +36,9 @@ type Mesh struct { // 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 @@ -53,12 +56,14 @@ func (r Mesh) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -72,6 +77,7 @@ func (r *Mesh) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -95,5 +101,8 @@ func (r *Mesh) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/appmesh/aws-appmesh-mesh_egressfilter.go b/cloudformation/appmesh/aws-appmesh-mesh_egressfilter.go index ed05e881b2..7ab982ad03 100644 --- a/cloudformation/appmesh/aws-appmesh-mesh_egressfilter.go +++ b/cloudformation/appmesh/aws-appmesh-mesh_egressfilter.go @@ -21,6 +21,9 @@ type Mesh_EgressFilter struct { // 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 diff --git a/cloudformation/appmesh/aws-appmesh-mesh_meshspec.go b/cloudformation/appmesh/aws-appmesh-mesh_meshspec.go index cab597fbf9..2fd2dc5f8a 100644 --- a/cloudformation/appmesh/aws-appmesh-mesh_meshspec.go +++ b/cloudformation/appmesh/aws-appmesh-mesh_meshspec.go @@ -21,6 +21,9 @@ type Mesh_MeshSpec struct { // 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 diff --git a/cloudformation/appmesh/aws-appmesh-route.go b/cloudformation/appmesh/aws-appmesh-route.go index b5ce9a2160..5499920cc5 100644 --- a/cloudformation/appmesh/aws-appmesh-route.go +++ b/cloudformation/appmesh/aws-appmesh-route.go @@ -46,6 +46,9 @@ type Route struct { // 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 @@ -63,12 +66,14 @@ func (r Route) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -82,6 +87,7 @@ func (r *Route) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -105,5 +111,8 @@ func (r *Route) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/appmesh/aws-appmesh-route_duration.go b/cloudformation/appmesh/aws-appmesh-route_duration.go index 740ea481b2..0545538eeb 100644 --- a/cloudformation/appmesh/aws-appmesh-route_duration.go +++ b/cloudformation/appmesh/aws-appmesh-route_duration.go @@ -26,6 +26,9 @@ type Route_Duration struct { // 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 diff --git a/cloudformation/appmesh/aws-appmesh-route_grpcretrypolicy.go b/cloudformation/appmesh/aws-appmesh-route_grpcretrypolicy.go index 64ff329710..2ca1a152d6 100644 --- a/cloudformation/appmesh/aws-appmesh-route_grpcretrypolicy.go +++ b/cloudformation/appmesh/aws-appmesh-route_grpcretrypolicy.go @@ -41,6 +41,9 @@ type Route_GrpcRetryPolicy struct { // 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 diff --git a/cloudformation/appmesh/aws-appmesh-route_grpcroute.go b/cloudformation/appmesh/aws-appmesh-route_grpcroute.go index 23d215f6a3..e36ed7f4f3 100644 --- a/cloudformation/appmesh/aws-appmesh-route_grpcroute.go +++ b/cloudformation/appmesh/aws-appmesh-route_grpcroute.go @@ -31,6 +31,9 @@ type Route_GrpcRoute struct { // 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 diff --git a/cloudformation/appmesh/aws-appmesh-route_grpcrouteaction.go b/cloudformation/appmesh/aws-appmesh-route_grpcrouteaction.go index 89d68a25b1..4aa59b85b9 100644 --- a/cloudformation/appmesh/aws-appmesh-route_grpcrouteaction.go +++ b/cloudformation/appmesh/aws-appmesh-route_grpcrouteaction.go @@ -21,6 +21,9 @@ type Route_GrpcRouteAction struct { // 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 diff --git a/cloudformation/appmesh/aws-appmesh-route_grpcroutematch.go b/cloudformation/appmesh/aws-appmesh-route_grpcroutematch.go index c4aae7b372..99936e828d 100644 --- a/cloudformation/appmesh/aws-appmesh-route_grpcroutematch.go +++ b/cloudformation/appmesh/aws-appmesh-route_grpcroutematch.go @@ -31,6 +31,9 @@ type Route_GrpcRouteMatch struct { // 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 diff --git a/cloudformation/appmesh/aws-appmesh-route_grpcroutemetadata.go b/cloudformation/appmesh/aws-appmesh-route_grpcroutemetadata.go index 637db6d12e..1ec2d284e1 100644 --- a/cloudformation/appmesh/aws-appmesh-route_grpcroutemetadata.go +++ b/cloudformation/appmesh/aws-appmesh-route_grpcroutemetadata.go @@ -31,6 +31,9 @@ type Route_GrpcRouteMetadata struct { // 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 diff --git a/cloudformation/appmesh/aws-appmesh-route_grpcroutemetadatamatchmethod.go b/cloudformation/appmesh/aws-appmesh-route_grpcroutemetadatamatchmethod.go index 53cd743eca..0db450f74a 100644 --- a/cloudformation/appmesh/aws-appmesh-route_grpcroutemetadatamatchmethod.go +++ b/cloudformation/appmesh/aws-appmesh-route_grpcroutemetadatamatchmethod.go @@ -41,6 +41,9 @@ type Route_GrpcRouteMetadataMatchMethod struct { // 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 diff --git a/cloudformation/appmesh/aws-appmesh-route_headermatchmethod.go b/cloudformation/appmesh/aws-appmesh-route_headermatchmethod.go index 9ae100d963..9b12c97ef2 100644 --- a/cloudformation/appmesh/aws-appmesh-route_headermatchmethod.go +++ b/cloudformation/appmesh/aws-appmesh-route_headermatchmethod.go @@ -41,6 +41,9 @@ type Route_HeaderMatchMethod struct { // 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 diff --git a/cloudformation/appmesh/aws-appmesh-route_httpretrypolicy.go b/cloudformation/appmesh/aws-appmesh-route_httpretrypolicy.go index 5c249111b5..c717ab080f 100644 --- a/cloudformation/appmesh/aws-appmesh-route_httpretrypolicy.go +++ b/cloudformation/appmesh/aws-appmesh-route_httpretrypolicy.go @@ -36,6 +36,9 @@ type Route_HttpRetryPolicy struct { // 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 diff --git a/cloudformation/appmesh/aws-appmesh-route_httproute.go b/cloudformation/appmesh/aws-appmesh-route_httproute.go index b294dcb8a7..671727de72 100644 --- a/cloudformation/appmesh/aws-appmesh-route_httproute.go +++ b/cloudformation/appmesh/aws-appmesh-route_httproute.go @@ -31,6 +31,9 @@ type Route_HttpRoute struct { // 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 diff --git a/cloudformation/appmesh/aws-appmesh-route_httprouteaction.go b/cloudformation/appmesh/aws-appmesh-route_httprouteaction.go index db28884e9d..9bfe010838 100644 --- a/cloudformation/appmesh/aws-appmesh-route_httprouteaction.go +++ b/cloudformation/appmesh/aws-appmesh-route_httprouteaction.go @@ -21,6 +21,9 @@ type Route_HttpRouteAction struct { // 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 diff --git a/cloudformation/appmesh/aws-appmesh-route_httprouteheader.go b/cloudformation/appmesh/aws-appmesh-route_httprouteheader.go index 60e01b6a20..442ecf9535 100644 --- a/cloudformation/appmesh/aws-appmesh-route_httprouteheader.go +++ b/cloudformation/appmesh/aws-appmesh-route_httprouteheader.go @@ -31,6 +31,9 @@ type Route_HttpRouteHeader struct { // 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 diff --git a/cloudformation/appmesh/aws-appmesh-route_httproutematch.go b/cloudformation/appmesh/aws-appmesh-route_httproutematch.go index b3d57a3a25..0095dc7bcb 100644 --- a/cloudformation/appmesh/aws-appmesh-route_httproutematch.go +++ b/cloudformation/appmesh/aws-appmesh-route_httproutematch.go @@ -36,6 +36,9 @@ type Route_HttpRouteMatch struct { // 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 diff --git a/cloudformation/appmesh/aws-appmesh-route_matchrange.go b/cloudformation/appmesh/aws-appmesh-route_matchrange.go index d7efbaa652..50f6524acf 100644 --- a/cloudformation/appmesh/aws-appmesh-route_matchrange.go +++ b/cloudformation/appmesh/aws-appmesh-route_matchrange.go @@ -26,6 +26,9 @@ type Route_MatchRange struct { // 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 diff --git a/cloudformation/appmesh/aws-appmesh-route_routespec.go b/cloudformation/appmesh/aws-appmesh-route_routespec.go index 60e609f676..0ef7b4d6f2 100644 --- a/cloudformation/appmesh/aws-appmesh-route_routespec.go +++ b/cloudformation/appmesh/aws-appmesh-route_routespec.go @@ -41,6 +41,9 @@ type Route_RouteSpec struct { // 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 diff --git a/cloudformation/appmesh/aws-appmesh-route_tcproute.go b/cloudformation/appmesh/aws-appmesh-route_tcproute.go index a717e73626..7ba27a0a68 100644 --- a/cloudformation/appmesh/aws-appmesh-route_tcproute.go +++ b/cloudformation/appmesh/aws-appmesh-route_tcproute.go @@ -21,6 +21,9 @@ type Route_TcpRoute struct { // 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 diff --git a/cloudformation/appmesh/aws-appmesh-route_tcprouteaction.go b/cloudformation/appmesh/aws-appmesh-route_tcprouteaction.go index c02054e513..b5a9f7c560 100644 --- a/cloudformation/appmesh/aws-appmesh-route_tcprouteaction.go +++ b/cloudformation/appmesh/aws-appmesh-route_tcprouteaction.go @@ -21,6 +21,9 @@ type Route_TcpRouteAction struct { // 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 diff --git a/cloudformation/appmesh/aws-appmesh-route_weightedtarget.go b/cloudformation/appmesh/aws-appmesh-route_weightedtarget.go index 4f97dfab09..e8dd13b2d8 100644 --- a/cloudformation/appmesh/aws-appmesh-route_weightedtarget.go +++ b/cloudformation/appmesh/aws-appmesh-route_weightedtarget.go @@ -26,6 +26,9 @@ type Route_WeightedTarget struct { // 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 diff --git a/cloudformation/appmesh/aws-appmesh-virtualnode.go b/cloudformation/appmesh/aws-appmesh-virtualnode.go index 1b714e9644..7f6a8ddea6 100644 --- a/cloudformation/appmesh/aws-appmesh-virtualnode.go +++ b/cloudformation/appmesh/aws-appmesh-virtualnode.go @@ -41,6 +41,9 @@ type VirtualNode struct { // 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 @@ -58,12 +61,14 @@ func (r VirtualNode) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -77,6 +82,7 @@ func (r *VirtualNode) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -100,5 +106,8 @@ func (r *VirtualNode) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/appmesh/aws-appmesh-virtualnode_accesslog.go b/cloudformation/appmesh/aws-appmesh-virtualnode_accesslog.go index 54f9019cab..dfa2b55314 100644 --- a/cloudformation/appmesh/aws-appmesh-virtualnode_accesslog.go +++ b/cloudformation/appmesh/aws-appmesh-virtualnode_accesslog.go @@ -21,6 +21,9 @@ type VirtualNode_AccessLog struct { // 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 diff --git a/cloudformation/appmesh/aws-appmesh-virtualnode_awscloudmapinstanceattribute.go b/cloudformation/appmesh/aws-appmesh-virtualnode_awscloudmapinstanceattribute.go index 28bfe7bac0..3cf41b0b37 100644 --- a/cloudformation/appmesh/aws-appmesh-virtualnode_awscloudmapinstanceattribute.go +++ b/cloudformation/appmesh/aws-appmesh-virtualnode_awscloudmapinstanceattribute.go @@ -26,6 +26,9 @@ type VirtualNode_AwsCloudMapInstanceAttribute struct { // 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 diff --git a/cloudformation/appmesh/aws-appmesh-virtualnode_awscloudmapservicediscovery.go b/cloudformation/appmesh/aws-appmesh-virtualnode_awscloudmapservicediscovery.go index 06cfef1e91..bd1bb9011b 100644 --- a/cloudformation/appmesh/aws-appmesh-virtualnode_awscloudmapservicediscovery.go +++ b/cloudformation/appmesh/aws-appmesh-virtualnode_awscloudmapservicediscovery.go @@ -31,6 +31,9 @@ type VirtualNode_AwsCloudMapServiceDiscovery struct { // 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 diff --git a/cloudformation/appmesh/aws-appmesh-virtualnode_backend.go b/cloudformation/appmesh/aws-appmesh-virtualnode_backend.go index 4e8238af2d..58826415ea 100644 --- a/cloudformation/appmesh/aws-appmesh-virtualnode_backend.go +++ b/cloudformation/appmesh/aws-appmesh-virtualnode_backend.go @@ -21,6 +21,9 @@ type VirtualNode_Backend struct { // 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 diff --git a/cloudformation/appmesh/aws-appmesh-virtualnode_dnsservicediscovery.go b/cloudformation/appmesh/aws-appmesh-virtualnode_dnsservicediscovery.go index 6125769bf0..14e8e1cc47 100644 --- a/cloudformation/appmesh/aws-appmesh-virtualnode_dnsservicediscovery.go +++ b/cloudformation/appmesh/aws-appmesh-virtualnode_dnsservicediscovery.go @@ -21,6 +21,9 @@ type VirtualNode_DnsServiceDiscovery struct { // 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 diff --git a/cloudformation/appmesh/aws-appmesh-virtualnode_fileaccesslog.go b/cloudformation/appmesh/aws-appmesh-virtualnode_fileaccesslog.go index 86e9f3c453..69b51e270b 100644 --- a/cloudformation/appmesh/aws-appmesh-virtualnode_fileaccesslog.go +++ b/cloudformation/appmesh/aws-appmesh-virtualnode_fileaccesslog.go @@ -21,6 +21,9 @@ type VirtualNode_FileAccessLog struct { // 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 diff --git a/cloudformation/appmesh/aws-appmesh-virtualnode_healthcheck.go b/cloudformation/appmesh/aws-appmesh-virtualnode_healthcheck.go index 71aa9794e1..06af5167cb 100644 --- a/cloudformation/appmesh/aws-appmesh-virtualnode_healthcheck.go +++ b/cloudformation/appmesh/aws-appmesh-virtualnode_healthcheck.go @@ -51,6 +51,9 @@ type VirtualNode_HealthCheck struct { // 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 diff --git a/cloudformation/appmesh/aws-appmesh-virtualnode_listener.go b/cloudformation/appmesh/aws-appmesh-virtualnode_listener.go index 0f8bc25124..47b38e62bd 100644 --- a/cloudformation/appmesh/aws-appmesh-virtualnode_listener.go +++ b/cloudformation/appmesh/aws-appmesh-virtualnode_listener.go @@ -26,6 +26,9 @@ type VirtualNode_Listener struct { // 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 diff --git a/cloudformation/appmesh/aws-appmesh-virtualnode_logging.go b/cloudformation/appmesh/aws-appmesh-virtualnode_logging.go index 75a1405f53..99186ad6c5 100644 --- a/cloudformation/appmesh/aws-appmesh-virtualnode_logging.go +++ b/cloudformation/appmesh/aws-appmesh-virtualnode_logging.go @@ -21,6 +21,9 @@ type VirtualNode_Logging struct { // 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 diff --git a/cloudformation/appmesh/aws-appmesh-virtualnode_portmapping.go b/cloudformation/appmesh/aws-appmesh-virtualnode_portmapping.go index 9b4b490877..33a943458c 100644 --- a/cloudformation/appmesh/aws-appmesh-virtualnode_portmapping.go +++ b/cloudformation/appmesh/aws-appmesh-virtualnode_portmapping.go @@ -26,6 +26,9 @@ type VirtualNode_PortMapping struct { // 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 diff --git a/cloudformation/appmesh/aws-appmesh-virtualnode_servicediscovery.go b/cloudformation/appmesh/aws-appmesh-virtualnode_servicediscovery.go index 54e890e1ba..196e749436 100644 --- a/cloudformation/appmesh/aws-appmesh-virtualnode_servicediscovery.go +++ b/cloudformation/appmesh/aws-appmesh-virtualnode_servicediscovery.go @@ -26,6 +26,9 @@ type VirtualNode_ServiceDiscovery struct { // 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 diff --git a/cloudformation/appmesh/aws-appmesh-virtualnode_virtualnodespec.go b/cloudformation/appmesh/aws-appmesh-virtualnode_virtualnodespec.go index 7a522cb790..8a0a1c1589 100644 --- a/cloudformation/appmesh/aws-appmesh-virtualnode_virtualnodespec.go +++ b/cloudformation/appmesh/aws-appmesh-virtualnode_virtualnodespec.go @@ -36,6 +36,9 @@ type VirtualNode_VirtualNodeSpec struct { // 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 diff --git a/cloudformation/appmesh/aws-appmesh-virtualnode_virtualservicebackend.go b/cloudformation/appmesh/aws-appmesh-virtualnode_virtualservicebackend.go index 27216fd942..8dbc6c2572 100644 --- a/cloudformation/appmesh/aws-appmesh-virtualnode_virtualservicebackend.go +++ b/cloudformation/appmesh/aws-appmesh-virtualnode_virtualservicebackend.go @@ -21,6 +21,9 @@ type VirtualNode_VirtualServiceBackend struct { // 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 diff --git a/cloudformation/appmesh/aws-appmesh-virtualrouter.go b/cloudformation/appmesh/aws-appmesh-virtualrouter.go index 3d19302058..baf75ae2de 100644 --- a/cloudformation/appmesh/aws-appmesh-virtualrouter.go +++ b/cloudformation/appmesh/aws-appmesh-virtualrouter.go @@ -41,6 +41,9 @@ type VirtualRouter struct { // 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 @@ -58,12 +61,14 @@ func (r VirtualRouter) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -77,6 +82,7 @@ func (r *VirtualRouter) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -100,5 +106,8 @@ func (r *VirtualRouter) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/appmesh/aws-appmesh-virtualrouter_portmapping.go b/cloudformation/appmesh/aws-appmesh-virtualrouter_portmapping.go index bbc626d694..98f59b81c3 100644 --- a/cloudformation/appmesh/aws-appmesh-virtualrouter_portmapping.go +++ b/cloudformation/appmesh/aws-appmesh-virtualrouter_portmapping.go @@ -26,6 +26,9 @@ type VirtualRouter_PortMapping struct { // 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 diff --git a/cloudformation/appmesh/aws-appmesh-virtualrouter_virtualrouterlistener.go b/cloudformation/appmesh/aws-appmesh-virtualrouter_virtualrouterlistener.go index 0054895fbd..64c858fc9b 100644 --- a/cloudformation/appmesh/aws-appmesh-virtualrouter_virtualrouterlistener.go +++ b/cloudformation/appmesh/aws-appmesh-virtualrouter_virtualrouterlistener.go @@ -21,6 +21,9 @@ type VirtualRouter_VirtualRouterListener struct { // 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 diff --git a/cloudformation/appmesh/aws-appmesh-virtualrouter_virtualrouterspec.go b/cloudformation/appmesh/aws-appmesh-virtualrouter_virtualrouterspec.go index b8c1ef0cbb..48e9cab7fa 100644 --- a/cloudformation/appmesh/aws-appmesh-virtualrouter_virtualrouterspec.go +++ b/cloudformation/appmesh/aws-appmesh-virtualrouter_virtualrouterspec.go @@ -21,6 +21,9 @@ type VirtualRouter_VirtualRouterSpec struct { // 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 diff --git a/cloudformation/appmesh/aws-appmesh-virtualservice.go b/cloudformation/appmesh/aws-appmesh-virtualservice.go index 7c1895e02e..e6b4dc320a 100644 --- a/cloudformation/appmesh/aws-appmesh-virtualservice.go +++ b/cloudformation/appmesh/aws-appmesh-virtualservice.go @@ -41,6 +41,9 @@ type VirtualService struct { // 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 @@ -58,12 +61,14 @@ func (r VirtualService) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -77,6 +82,7 @@ func (r *VirtualService) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -100,5 +106,8 @@ func (r *VirtualService) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/appmesh/aws-appmesh-virtualservice_virtualnodeserviceprovider.go b/cloudformation/appmesh/aws-appmesh-virtualservice_virtualnodeserviceprovider.go index 0e3640aed4..1a6502b32d 100644 --- a/cloudformation/appmesh/aws-appmesh-virtualservice_virtualnodeserviceprovider.go +++ b/cloudformation/appmesh/aws-appmesh-virtualservice_virtualnodeserviceprovider.go @@ -21,6 +21,9 @@ type VirtualService_VirtualNodeServiceProvider struct { // 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 diff --git a/cloudformation/appmesh/aws-appmesh-virtualservice_virtualrouterserviceprovider.go b/cloudformation/appmesh/aws-appmesh-virtualservice_virtualrouterserviceprovider.go index 080bd583a6..8b65a9ba2b 100644 --- a/cloudformation/appmesh/aws-appmesh-virtualservice_virtualrouterserviceprovider.go +++ b/cloudformation/appmesh/aws-appmesh-virtualservice_virtualrouterserviceprovider.go @@ -21,6 +21,9 @@ type VirtualService_VirtualRouterServiceProvider struct { // 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 diff --git a/cloudformation/appmesh/aws-appmesh-virtualservice_virtualserviceprovider.go b/cloudformation/appmesh/aws-appmesh-virtualservice_virtualserviceprovider.go index 01ee549239..f044205c73 100644 --- a/cloudformation/appmesh/aws-appmesh-virtualservice_virtualserviceprovider.go +++ b/cloudformation/appmesh/aws-appmesh-virtualservice_virtualserviceprovider.go @@ -26,6 +26,9 @@ type VirtualService_VirtualServiceProvider struct { // 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 diff --git a/cloudformation/appmesh/aws-appmesh-virtualservice_virtualservicespec.go b/cloudformation/appmesh/aws-appmesh-virtualservice_virtualservicespec.go index 8f6f53d62a..90caf8c015 100644 --- a/cloudformation/appmesh/aws-appmesh-virtualservice_virtualservicespec.go +++ b/cloudformation/appmesh/aws-appmesh-virtualservice_virtualservicespec.go @@ -21,6 +21,9 @@ type VirtualService_VirtualServiceSpec struct { // 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 diff --git a/cloudformation/appstream/aws-appstream-directoryconfig.go b/cloudformation/appstream/aws-appstream-directoryconfig.go index ed61d74bc0..4270b4c94d 100644 --- a/cloudformation/appstream/aws-appstream-directoryconfig.go +++ b/cloudformation/appstream/aws-appstream-directoryconfig.go @@ -35,6 +35,9 @@ type DirectoryConfig struct { // 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 @@ -52,12 +55,14 @@ func (r DirectoryConfig) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -71,6 +76,7 @@ func (r *DirectoryConfig) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -94,5 +100,8 @@ func (r *DirectoryConfig) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/appstream/aws-appstream-directoryconfig_serviceaccountcredentials.go b/cloudformation/appstream/aws-appstream-directoryconfig_serviceaccountcredentials.go index fd37854883..3ea9cf17df 100644 --- a/cloudformation/appstream/aws-appstream-directoryconfig_serviceaccountcredentials.go +++ b/cloudformation/appstream/aws-appstream-directoryconfig_serviceaccountcredentials.go @@ -26,6 +26,9 @@ type DirectoryConfig_ServiceAccountCredentials struct { // 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 diff --git a/cloudformation/appstream/aws-appstream-fleet.go b/cloudformation/appstream/aws-appstream-fleet.go index d6902f488b..15a6568aab 100644 --- a/cloudformation/appstream/aws-appstream-fleet.go +++ b/cloudformation/appstream/aws-appstream-fleet.go @@ -74,7 +74,7 @@ type Fleet struct { MaxUserDurationInSeconds int `json:"MaxUserDurationInSeconds,omitempty"` // Name AWS CloudFormation Property - // Required: false + // Required: true // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appstream-fleet.html#cfn-appstream-fleet-name Name string `json:"Name,omitempty"` @@ -96,6 +96,9 @@ type Fleet struct { // 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 @@ -113,12 +116,14 @@ func (r Fleet) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -132,6 +137,7 @@ func (r *Fleet) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -155,5 +161,8 @@ func (r *Fleet) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/appstream/aws-appstream-fleet_computecapacity.go b/cloudformation/appstream/aws-appstream-fleet_computecapacity.go index 51fd5a7d4d..ff6d670b00 100644 --- a/cloudformation/appstream/aws-appstream-fleet_computecapacity.go +++ b/cloudformation/appstream/aws-appstream-fleet_computecapacity.go @@ -21,6 +21,9 @@ type Fleet_ComputeCapacity struct { // 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 diff --git a/cloudformation/appstream/aws-appstream-fleet_domainjoininfo.go b/cloudformation/appstream/aws-appstream-fleet_domainjoininfo.go index a2a3e22c56..5eb7c88bf1 100644 --- a/cloudformation/appstream/aws-appstream-fleet_domainjoininfo.go +++ b/cloudformation/appstream/aws-appstream-fleet_domainjoininfo.go @@ -26,6 +26,9 @@ type Fleet_DomainJoinInfo struct { // 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 diff --git a/cloudformation/appstream/aws-appstream-fleet_vpcconfig.go b/cloudformation/appstream/aws-appstream-fleet_vpcconfig.go index 2e1b441fd9..319f10f234 100644 --- a/cloudformation/appstream/aws-appstream-fleet_vpcconfig.go +++ b/cloudformation/appstream/aws-appstream-fleet_vpcconfig.go @@ -26,6 +26,9 @@ type Fleet_VpcConfig struct { // 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 diff --git a/cloudformation/appstream/aws-appstream-imagebuilder.go b/cloudformation/appstream/aws-appstream-imagebuilder.go index 509f20fa66..acbde98f8f 100644 --- a/cloudformation/appstream/aws-appstream-imagebuilder.go +++ b/cloudformation/appstream/aws-appstream-imagebuilder.go @@ -59,7 +59,7 @@ type ImageBuilder struct { InstanceType string `json:"InstanceType,omitempty"` // Name AWS CloudFormation Property - // Required: false + // Required: true // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appstream-imagebuilder.html#cfn-appstream-imagebuilder-name Name string `json:"Name,omitempty"` @@ -81,6 +81,9 @@ type ImageBuilder struct { // 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 @@ -98,12 +101,14 @@ func (r ImageBuilder) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -117,6 +122,7 @@ func (r *ImageBuilder) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -140,5 +146,8 @@ func (r *ImageBuilder) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/appstream/aws-appstream-imagebuilder_accessendpoint.go b/cloudformation/appstream/aws-appstream-imagebuilder_accessendpoint.go index b9e55599b7..17855e7342 100644 --- a/cloudformation/appstream/aws-appstream-imagebuilder_accessendpoint.go +++ b/cloudformation/appstream/aws-appstream-imagebuilder_accessendpoint.go @@ -26,6 +26,9 @@ type ImageBuilder_AccessEndpoint struct { // 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 diff --git a/cloudformation/appstream/aws-appstream-imagebuilder_domainjoininfo.go b/cloudformation/appstream/aws-appstream-imagebuilder_domainjoininfo.go index f0fee62e1e..9f001c8532 100644 --- a/cloudformation/appstream/aws-appstream-imagebuilder_domainjoininfo.go +++ b/cloudformation/appstream/aws-appstream-imagebuilder_domainjoininfo.go @@ -26,6 +26,9 @@ type ImageBuilder_DomainJoinInfo struct { // 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 diff --git a/cloudformation/appstream/aws-appstream-imagebuilder_vpcconfig.go b/cloudformation/appstream/aws-appstream-imagebuilder_vpcconfig.go index f1c951abc5..b718bbfee0 100644 --- a/cloudformation/appstream/aws-appstream-imagebuilder_vpcconfig.go +++ b/cloudformation/appstream/aws-appstream-imagebuilder_vpcconfig.go @@ -26,6 +26,9 @@ type ImageBuilder_VpcConfig struct { // 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 diff --git a/cloudformation/appstream/aws-appstream-stack.go b/cloudformation/appstream/aws-appstream-stack.go index 80846dd1b5..0f2ad7b698 100644 --- a/cloudformation/appstream/aws-appstream-stack.go +++ b/cloudformation/appstream/aws-appstream-stack.go @@ -86,6 +86,9 @@ type Stack struct { // 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 @@ -103,12 +106,14 @@ func (r Stack) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -122,6 +127,7 @@ func (r *Stack) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -145,5 +151,8 @@ func (r *Stack) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/appstream/aws-appstream-stack_accessendpoint.go b/cloudformation/appstream/aws-appstream-stack_accessendpoint.go index b64935b749..db38b460a9 100644 --- a/cloudformation/appstream/aws-appstream-stack_accessendpoint.go +++ b/cloudformation/appstream/aws-appstream-stack_accessendpoint.go @@ -26,6 +26,9 @@ type Stack_AccessEndpoint struct { // 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 diff --git a/cloudformation/appstream/aws-appstream-stack_applicationsettings.go b/cloudformation/appstream/aws-appstream-stack_applicationsettings.go index 9924a53c6f..27cd85295f 100644 --- a/cloudformation/appstream/aws-appstream-stack_applicationsettings.go +++ b/cloudformation/appstream/aws-appstream-stack_applicationsettings.go @@ -26,6 +26,9 @@ type Stack_ApplicationSettings struct { // 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 diff --git a/cloudformation/appstream/aws-appstream-stack_storageconnector.go b/cloudformation/appstream/aws-appstream-stack_storageconnector.go index 17b54b9e55..7cb9d94dd5 100644 --- a/cloudformation/appstream/aws-appstream-stack_storageconnector.go +++ b/cloudformation/appstream/aws-appstream-stack_storageconnector.go @@ -31,6 +31,9 @@ type Stack_StorageConnector struct { // 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 diff --git a/cloudformation/appstream/aws-appstream-stack_usersetting.go b/cloudformation/appstream/aws-appstream-stack_usersetting.go index bff58429ae..8ee601470b 100644 --- a/cloudformation/appstream/aws-appstream-stack_usersetting.go +++ b/cloudformation/appstream/aws-appstream-stack_usersetting.go @@ -26,6 +26,9 @@ type Stack_UserSetting struct { // 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 diff --git a/cloudformation/appstream/aws-appstream-stackfleetassociation.go b/cloudformation/appstream/aws-appstream-stackfleetassociation.go index e57708d358..8a20dc6635 100644 --- a/cloudformation/appstream/aws-appstream-stackfleetassociation.go +++ b/cloudformation/appstream/aws-appstream-stackfleetassociation.go @@ -30,6 +30,9 @@ type StackFleetAssociation struct { // 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 @@ -47,12 +50,14 @@ func (r StackFleetAssociation) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -66,6 +71,7 @@ func (r *StackFleetAssociation) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -89,5 +95,8 @@ func (r *StackFleetAssociation) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/appstream/aws-appstream-stackuserassociation.go b/cloudformation/appstream/aws-appstream-stackuserassociation.go index ade4a4b2ba..deeda70467 100644 --- a/cloudformation/appstream/aws-appstream-stackuserassociation.go +++ b/cloudformation/appstream/aws-appstream-stackuserassociation.go @@ -40,6 +40,9 @@ type StackUserAssociation struct { // 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 @@ -57,12 +60,14 @@ func (r StackUserAssociation) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -76,6 +81,7 @@ func (r *StackUserAssociation) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -99,5 +105,8 @@ func (r *StackUserAssociation) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/appstream/aws-appstream-user.go b/cloudformation/appstream/aws-appstream-user.go index 2c7a2f92f4..fd66f0d594 100644 --- a/cloudformation/appstream/aws-appstream-user.go +++ b/cloudformation/appstream/aws-appstream-user.go @@ -45,6 +45,9 @@ type User struct { // 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 @@ -62,12 +65,14 @@ func (r User) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -81,6 +86,7 @@ func (r *User) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -104,5 +110,8 @@ func (r *User) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/appsync/aws-appsync-apicache.go b/cloudformation/appsync/aws-appsync-apicache.go index fda2d78352..827b7d6b77 100644 --- a/cloudformation/appsync/aws-appsync-apicache.go +++ b/cloudformation/appsync/aws-appsync-apicache.go @@ -50,6 +50,9 @@ type ApiCache struct { // 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 @@ -67,12 +70,14 @@ func (r ApiCache) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -86,6 +91,7 @@ func (r *ApiCache) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -109,5 +115,8 @@ func (r *ApiCache) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/appsync/aws-appsync-apikey.go b/cloudformation/appsync/aws-appsync-apikey.go index d9ee5abb66..77c22ac610 100644 --- a/cloudformation/appsync/aws-appsync-apikey.go +++ b/cloudformation/appsync/aws-appsync-apikey.go @@ -35,6 +35,9 @@ type ApiKey struct { // 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 @@ -52,12 +55,14 @@ func (r ApiKey) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -71,6 +76,7 @@ func (r *ApiKey) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -94,5 +100,8 @@ func (r *ApiKey) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/appsync/aws-appsync-datasource.go b/cloudformation/appsync/aws-appsync-datasource.go index 128209da7c..14052949be 100644 --- a/cloudformation/appsync/aws-appsync-datasource.go +++ b/cloudformation/appsync/aws-appsync-datasource.go @@ -70,6 +70,9 @@ type DataSource struct { // 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 @@ -87,12 +90,14 @@ func (r DataSource) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -106,6 +111,7 @@ func (r *DataSource) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -129,5 +135,8 @@ func (r *DataSource) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/appsync/aws-appsync-datasource_authorizationconfig.go b/cloudformation/appsync/aws-appsync-datasource_authorizationconfig.go index b9cffc4e03..3204c86125 100644 --- a/cloudformation/appsync/aws-appsync-datasource_authorizationconfig.go +++ b/cloudformation/appsync/aws-appsync-datasource_authorizationconfig.go @@ -26,6 +26,9 @@ type DataSource_AuthorizationConfig struct { // 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 diff --git a/cloudformation/appsync/aws-appsync-datasource_awsiamconfig.go b/cloudformation/appsync/aws-appsync-datasource_awsiamconfig.go index d4fcb33756..bf71de3748 100644 --- a/cloudformation/appsync/aws-appsync-datasource_awsiamconfig.go +++ b/cloudformation/appsync/aws-appsync-datasource_awsiamconfig.go @@ -26,6 +26,9 @@ type DataSource_AwsIamConfig struct { // 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 diff --git a/cloudformation/appsync/aws-appsync-datasource_deltasyncconfig.go b/cloudformation/appsync/aws-appsync-datasource_deltasyncconfig.go index 74bd4f47f0..e9b8ae8b7f 100644 --- a/cloudformation/appsync/aws-appsync-datasource_deltasyncconfig.go +++ b/cloudformation/appsync/aws-appsync-datasource_deltasyncconfig.go @@ -31,6 +31,9 @@ type DataSource_DeltaSyncConfig struct { // 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 diff --git a/cloudformation/appsync/aws-appsync-datasource_dynamodbconfig.go b/cloudformation/appsync/aws-appsync-datasource_dynamodbconfig.go index 4264e54809..fd4e2fea80 100644 --- a/cloudformation/appsync/aws-appsync-datasource_dynamodbconfig.go +++ b/cloudformation/appsync/aws-appsync-datasource_dynamodbconfig.go @@ -41,6 +41,9 @@ type DataSource_DynamoDBConfig struct { // 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 diff --git a/cloudformation/appsync/aws-appsync-datasource_elasticsearchconfig.go b/cloudformation/appsync/aws-appsync-datasource_elasticsearchconfig.go index 64149ef1a1..6128712140 100644 --- a/cloudformation/appsync/aws-appsync-datasource_elasticsearchconfig.go +++ b/cloudformation/appsync/aws-appsync-datasource_elasticsearchconfig.go @@ -26,6 +26,9 @@ type DataSource_ElasticsearchConfig struct { // 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 diff --git a/cloudformation/appsync/aws-appsync-datasource_httpconfig.go b/cloudformation/appsync/aws-appsync-datasource_httpconfig.go index 56b24d1cc9..00240b6524 100644 --- a/cloudformation/appsync/aws-appsync-datasource_httpconfig.go +++ b/cloudformation/appsync/aws-appsync-datasource_httpconfig.go @@ -26,6 +26,9 @@ type DataSource_HttpConfig struct { // 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 diff --git a/cloudformation/appsync/aws-appsync-datasource_lambdaconfig.go b/cloudformation/appsync/aws-appsync-datasource_lambdaconfig.go index 7db7cd06d6..d37516c60f 100644 --- a/cloudformation/appsync/aws-appsync-datasource_lambdaconfig.go +++ b/cloudformation/appsync/aws-appsync-datasource_lambdaconfig.go @@ -21,6 +21,9 @@ type DataSource_LambdaConfig struct { // 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 diff --git a/cloudformation/appsync/aws-appsync-datasource_rdshttpendpointconfig.go b/cloudformation/appsync/aws-appsync-datasource_rdshttpendpointconfig.go index 2772c85776..0310c7dc24 100644 --- a/cloudformation/appsync/aws-appsync-datasource_rdshttpendpointconfig.go +++ b/cloudformation/appsync/aws-appsync-datasource_rdshttpendpointconfig.go @@ -41,6 +41,9 @@ type DataSource_RdsHttpEndpointConfig struct { // 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 diff --git a/cloudformation/appsync/aws-appsync-datasource_relationaldatabaseconfig.go b/cloudformation/appsync/aws-appsync-datasource_relationaldatabaseconfig.go index d83b4c6578..063b6346a7 100644 --- a/cloudformation/appsync/aws-appsync-datasource_relationaldatabaseconfig.go +++ b/cloudformation/appsync/aws-appsync-datasource_relationaldatabaseconfig.go @@ -26,6 +26,9 @@ type DataSource_RelationalDatabaseConfig struct { // 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 diff --git a/cloudformation/appsync/aws-appsync-functionconfiguration.go b/cloudformation/appsync/aws-appsync-functionconfiguration.go index dceba8508c..95130bb4b1 100644 --- a/cloudformation/appsync/aws-appsync-functionconfiguration.go +++ b/cloudformation/appsync/aws-appsync-functionconfiguration.go @@ -65,6 +65,9 @@ type FunctionConfiguration struct { // 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 @@ -82,12 +85,14 @@ func (r FunctionConfiguration) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -101,6 +106,7 @@ func (r *FunctionConfiguration) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -124,5 +130,8 @@ func (r *FunctionConfiguration) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/appsync/aws-appsync-graphqlapi.go b/cloudformation/appsync/aws-appsync-graphqlapi.go index 5bebc4a15d..1aba854476 100644 --- a/cloudformation/appsync/aws-appsync-graphqlapi.go +++ b/cloudformation/appsync/aws-appsync-graphqlapi.go @@ -55,6 +55,9 @@ type GraphQLApi struct { // 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 @@ -72,12 +75,14 @@ func (r GraphQLApi) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -91,6 +96,7 @@ func (r *GraphQLApi) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -114,5 +120,8 @@ func (r *GraphQLApi) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/appsync/aws-appsync-graphqlapi_additionalauthenticationprovider.go b/cloudformation/appsync/aws-appsync-graphqlapi_additionalauthenticationprovider.go index 366c5f9587..084ba767a3 100644 --- a/cloudformation/appsync/aws-appsync-graphqlapi_additionalauthenticationprovider.go +++ b/cloudformation/appsync/aws-appsync-graphqlapi_additionalauthenticationprovider.go @@ -31,6 +31,9 @@ type GraphQLApi_AdditionalAuthenticationProvider struct { // 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 diff --git a/cloudformation/appsync/aws-appsync-graphqlapi_additionalauthenticationproviders.go b/cloudformation/appsync/aws-appsync-graphqlapi_additionalauthenticationproviders.go index f5796e567f..257adf110f 100644 --- a/cloudformation/appsync/aws-appsync-graphqlapi_additionalauthenticationproviders.go +++ b/cloudformation/appsync/aws-appsync-graphqlapi_additionalauthenticationproviders.go @@ -16,6 +16,9 @@ type GraphQLApi_AdditionalAuthenticationProviders struct { // 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 diff --git a/cloudformation/appsync/aws-appsync-graphqlapi_cognitouserpoolconfig.go b/cloudformation/appsync/aws-appsync-graphqlapi_cognitouserpoolconfig.go index 01bba80e99..68d23ee8a3 100644 --- a/cloudformation/appsync/aws-appsync-graphqlapi_cognitouserpoolconfig.go +++ b/cloudformation/appsync/aws-appsync-graphqlapi_cognitouserpoolconfig.go @@ -31,6 +31,9 @@ type GraphQLApi_CognitoUserPoolConfig struct { // 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 diff --git a/cloudformation/appsync/aws-appsync-graphqlapi_logconfig.go b/cloudformation/appsync/aws-appsync-graphqlapi_logconfig.go index 23ba93d245..0d7235aa51 100644 --- a/cloudformation/appsync/aws-appsync-graphqlapi_logconfig.go +++ b/cloudformation/appsync/aws-appsync-graphqlapi_logconfig.go @@ -31,6 +31,9 @@ type GraphQLApi_LogConfig struct { // 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 diff --git a/cloudformation/appsync/aws-appsync-graphqlapi_openidconnectconfig.go b/cloudformation/appsync/aws-appsync-graphqlapi_openidconnectconfig.go index 4148837beb..526f419ad6 100644 --- a/cloudformation/appsync/aws-appsync-graphqlapi_openidconnectconfig.go +++ b/cloudformation/appsync/aws-appsync-graphqlapi_openidconnectconfig.go @@ -36,6 +36,9 @@ type GraphQLApi_OpenIDConnectConfig struct { // 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 diff --git a/cloudformation/appsync/aws-appsync-graphqlapi_tags.go b/cloudformation/appsync/aws-appsync-graphqlapi_tags.go index 5e14d9cba5..82054374d2 100644 --- a/cloudformation/appsync/aws-appsync-graphqlapi_tags.go +++ b/cloudformation/appsync/aws-appsync-graphqlapi_tags.go @@ -16,6 +16,9 @@ type GraphQLApi_Tags struct { // 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 diff --git a/cloudformation/appsync/aws-appsync-graphqlapi_userpoolconfig.go b/cloudformation/appsync/aws-appsync-graphqlapi_userpoolconfig.go index 2afa34edaa..31446da9de 100644 --- a/cloudformation/appsync/aws-appsync-graphqlapi_userpoolconfig.go +++ b/cloudformation/appsync/aws-appsync-graphqlapi_userpoolconfig.go @@ -36,6 +36,9 @@ type GraphQLApi_UserPoolConfig struct { // 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 diff --git a/cloudformation/appsync/aws-appsync-graphqlschema.go b/cloudformation/appsync/aws-appsync-graphqlschema.go index 9800db2116..ff69ba0b67 100644 --- a/cloudformation/appsync/aws-appsync-graphqlschema.go +++ b/cloudformation/appsync/aws-appsync-graphqlschema.go @@ -35,6 +35,9 @@ type GraphQLSchema struct { // 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 @@ -52,12 +55,14 @@ func (r GraphQLSchema) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -71,6 +76,7 @@ func (r *GraphQLSchema) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -94,5 +100,8 @@ func (r *GraphQLSchema) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/appsync/aws-appsync-resolver.go b/cloudformation/appsync/aws-appsync-resolver.go index 0308cf5f72..fda52add9c 100644 --- a/cloudformation/appsync/aws-appsync-resolver.go +++ b/cloudformation/appsync/aws-appsync-resolver.go @@ -80,6 +80,9 @@ type Resolver struct { // 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 @@ -97,12 +100,14 @@ func (r Resolver) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -116,6 +121,7 @@ func (r *Resolver) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -139,5 +145,8 @@ func (r *Resolver) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/appsync/aws-appsync-resolver_cachingconfig.go b/cloudformation/appsync/aws-appsync-resolver_cachingconfig.go index 6257ab60b7..1ffa7b4ed8 100644 --- a/cloudformation/appsync/aws-appsync-resolver_cachingconfig.go +++ b/cloudformation/appsync/aws-appsync-resolver_cachingconfig.go @@ -26,6 +26,9 @@ type Resolver_CachingConfig struct { // 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 diff --git a/cloudformation/appsync/aws-appsync-resolver_lambdaconflicthandlerconfig.go b/cloudformation/appsync/aws-appsync-resolver_lambdaconflicthandlerconfig.go index 859e700fad..898086f213 100644 --- a/cloudformation/appsync/aws-appsync-resolver_lambdaconflicthandlerconfig.go +++ b/cloudformation/appsync/aws-appsync-resolver_lambdaconflicthandlerconfig.go @@ -21,6 +21,9 @@ type Resolver_LambdaConflictHandlerConfig struct { // 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 diff --git a/cloudformation/appsync/aws-appsync-resolver_pipelineconfig.go b/cloudformation/appsync/aws-appsync-resolver_pipelineconfig.go index 71c90692b9..c8c379332e 100644 --- a/cloudformation/appsync/aws-appsync-resolver_pipelineconfig.go +++ b/cloudformation/appsync/aws-appsync-resolver_pipelineconfig.go @@ -21,6 +21,9 @@ type Resolver_PipelineConfig struct { // 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 diff --git a/cloudformation/appsync/aws-appsync-resolver_syncconfig.go b/cloudformation/appsync/aws-appsync-resolver_syncconfig.go index 69dadfb72a..989ce3937c 100644 --- a/cloudformation/appsync/aws-appsync-resolver_syncconfig.go +++ b/cloudformation/appsync/aws-appsync-resolver_syncconfig.go @@ -31,6 +31,9 @@ type Resolver_SyncConfig struct { // 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 diff --git a/cloudformation/ask/alexa-ask-skill.go b/cloudformation/ask/alexa-ask-skill.go index 22c35b0634..2308bba76d 100644 --- a/cloudformation/ask/alexa-ask-skill.go +++ b/cloudformation/ask/alexa-ask-skill.go @@ -35,6 +35,9 @@ type Skill struct { // 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 @@ -52,12 +55,14 @@ func (r Skill) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -71,6 +76,7 @@ func (r *Skill) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -94,5 +100,8 @@ func (r *Skill) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/ask/alexa-ask-skill_authenticationconfiguration.go b/cloudformation/ask/alexa-ask-skill_authenticationconfiguration.go index 047b624e08..d23dc81523 100644 --- a/cloudformation/ask/alexa-ask-skill_authenticationconfiguration.go +++ b/cloudformation/ask/alexa-ask-skill_authenticationconfiguration.go @@ -31,6 +31,9 @@ type Skill_AuthenticationConfiguration struct { // 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 diff --git a/cloudformation/ask/alexa-ask-skill_overrides.go b/cloudformation/ask/alexa-ask-skill_overrides.go index e5c750478f..a5260e69ac 100644 --- a/cloudformation/ask/alexa-ask-skill_overrides.go +++ b/cloudformation/ask/alexa-ask-skill_overrides.go @@ -21,6 +21,9 @@ type Skill_Overrides struct { // 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 diff --git a/cloudformation/ask/alexa-ask-skill_skillpackage.go b/cloudformation/ask/alexa-ask-skill_skillpackage.go index cc7aa1a061..177e81d72f 100644 --- a/cloudformation/ask/alexa-ask-skill_skillpackage.go +++ b/cloudformation/ask/alexa-ask-skill_skillpackage.go @@ -41,6 +41,9 @@ type Skill_SkillPackage struct { // 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 diff --git a/cloudformation/athena/aws-athena-namedquery.go b/cloudformation/athena/aws-athena-namedquery.go index 0143f77f34..09546fbc82 100644 --- a/cloudformation/athena/aws-athena-namedquery.go +++ b/cloudformation/athena/aws-athena-namedquery.go @@ -40,6 +40,9 @@ type NamedQuery struct { // 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 @@ -57,12 +60,14 @@ func (r NamedQuery) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -76,6 +81,7 @@ func (r *NamedQuery) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -99,5 +105,8 @@ func (r *NamedQuery) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/autoscaling/aws-autoscaling-autoscalinggroup.go b/cloudformation/autoscaling/aws-autoscaling-autoscalinggroup.go index 643f9961eb..c0aa91141f 100644 --- a/cloudformation/autoscaling/aws-autoscaling-autoscalinggroup.go +++ b/cloudformation/autoscaling/aws-autoscaling-autoscalinggroup.go @@ -136,6 +136,9 @@ type AutoScalingGroup struct { // 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 @@ -153,6 +156,7 @@ func (r AutoScalingGroup) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` UpdatePolicy *policies.UpdatePolicy `json:"UpdatePolicy,omitempty"` CreationPolicy *policies.CreationPolicy `json:"CreationPolicy,omitempty"` }{ @@ -161,6 +165,7 @@ func (r AutoScalingGroup) MarshalJSON() ([]byte, error) { DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, UpdatePolicy: r.AWSCloudFormationUpdatePolicy, CreationPolicy: r.AWSCloudFormationCreationPolicy, }) @@ -176,6 +181,7 @@ func (r *AutoScalingGroup) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -199,5 +205,8 @@ func (r *AutoScalingGroup) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/autoscaling/aws-autoscaling-autoscalinggroup_instancesdistribution.go b/cloudformation/autoscaling/aws-autoscaling-autoscalinggroup_instancesdistribution.go index b3ad9d1eb3..4e1791558b 100644 --- a/cloudformation/autoscaling/aws-autoscaling-autoscalinggroup_instancesdistribution.go +++ b/cloudformation/autoscaling/aws-autoscaling-autoscalinggroup_instancesdistribution.go @@ -46,6 +46,9 @@ type AutoScalingGroup_InstancesDistribution struct { // 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 diff --git a/cloudformation/autoscaling/aws-autoscaling-autoscalinggroup_launchtemplate.go b/cloudformation/autoscaling/aws-autoscaling-autoscalinggroup_launchtemplate.go index 9b16450fd5..527efebcd2 100644 --- a/cloudformation/autoscaling/aws-autoscaling-autoscalinggroup_launchtemplate.go +++ b/cloudformation/autoscaling/aws-autoscaling-autoscalinggroup_launchtemplate.go @@ -26,6 +26,9 @@ type AutoScalingGroup_LaunchTemplate struct { // 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 diff --git a/cloudformation/autoscaling/aws-autoscaling-autoscalinggroup_launchtemplateoverrides.go b/cloudformation/autoscaling/aws-autoscaling-autoscalinggroup_launchtemplateoverrides.go index c6ba436070..c6ae8d9518 100644 --- a/cloudformation/autoscaling/aws-autoscaling-autoscalinggroup_launchtemplateoverrides.go +++ b/cloudformation/autoscaling/aws-autoscaling-autoscalinggroup_launchtemplateoverrides.go @@ -13,6 +13,11 @@ type AutoScalingGroup_LaunchTemplateOverrides struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cfn-as-mixedinstancespolicy-launchtemplateoverrides.html#cfn-autoscaling-autoscalinggroup-launchtemplateoverrides-instancetype InstanceType string `json:"InstanceType,omitempty"` + // WeightedCapacity AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cfn-as-mixedinstancespolicy-launchtemplateoverrides.html#cfn-autoscaling-autoscalinggroup-launchtemplateoverrides-weightedcapacity + WeightedCapacity string `json:"WeightedCapacity,omitempty"` + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` @@ -21,6 +26,9 @@ type AutoScalingGroup_LaunchTemplateOverrides struct { // 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 diff --git a/cloudformation/autoscaling/aws-autoscaling-autoscalinggroup_launchtemplatespecification.go b/cloudformation/autoscaling/aws-autoscaling-autoscalinggroup_launchtemplatespecification.go index f2435abc22..89b39358f6 100644 --- a/cloudformation/autoscaling/aws-autoscaling-autoscalinggroup_launchtemplatespecification.go +++ b/cloudformation/autoscaling/aws-autoscaling-autoscalinggroup_launchtemplatespecification.go @@ -31,6 +31,9 @@ type AutoScalingGroup_LaunchTemplateSpecification struct { // 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 diff --git a/cloudformation/autoscaling/aws-autoscaling-autoscalinggroup_lifecyclehookspecification.go b/cloudformation/autoscaling/aws-autoscaling-autoscalinggroup_lifecyclehookspecification.go index fe1004650e..66e2a34f4d 100644 --- a/cloudformation/autoscaling/aws-autoscaling-autoscalinggroup_lifecyclehookspecification.go +++ b/cloudformation/autoscaling/aws-autoscaling-autoscalinggroup_lifecyclehookspecification.go @@ -51,6 +51,9 @@ type AutoScalingGroup_LifecycleHookSpecification struct { // 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 diff --git a/cloudformation/autoscaling/aws-autoscaling-autoscalinggroup_metricscollection.go b/cloudformation/autoscaling/aws-autoscaling-autoscalinggroup_metricscollection.go index 65cf34ec08..1ae9aee4cb 100644 --- a/cloudformation/autoscaling/aws-autoscaling-autoscalinggroup_metricscollection.go +++ b/cloudformation/autoscaling/aws-autoscaling-autoscalinggroup_metricscollection.go @@ -26,6 +26,9 @@ type AutoScalingGroup_MetricsCollection struct { // 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 diff --git a/cloudformation/autoscaling/aws-autoscaling-autoscalinggroup_mixedinstancespolicy.go b/cloudformation/autoscaling/aws-autoscaling-autoscalinggroup_mixedinstancespolicy.go index d3902ea417..6778fc942a 100644 --- a/cloudformation/autoscaling/aws-autoscaling-autoscalinggroup_mixedinstancespolicy.go +++ b/cloudformation/autoscaling/aws-autoscaling-autoscalinggroup_mixedinstancespolicy.go @@ -26,6 +26,9 @@ type AutoScalingGroup_MixedInstancesPolicy struct { // 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 diff --git a/cloudformation/autoscaling/aws-autoscaling-autoscalinggroup_notificationconfiguration.go b/cloudformation/autoscaling/aws-autoscaling-autoscalinggroup_notificationconfiguration.go index 484f46e9e8..4c5012ee97 100644 --- a/cloudformation/autoscaling/aws-autoscaling-autoscalinggroup_notificationconfiguration.go +++ b/cloudformation/autoscaling/aws-autoscaling-autoscalinggroup_notificationconfiguration.go @@ -26,6 +26,9 @@ type AutoScalingGroup_NotificationConfiguration struct { // 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 diff --git a/cloudformation/autoscaling/aws-autoscaling-autoscalinggroup_tagproperty.go b/cloudformation/autoscaling/aws-autoscaling-autoscalinggroup_tagproperty.go index e105be2486..037569ba60 100644 --- a/cloudformation/autoscaling/aws-autoscaling-autoscalinggroup_tagproperty.go +++ b/cloudformation/autoscaling/aws-autoscaling-autoscalinggroup_tagproperty.go @@ -31,6 +31,9 @@ type AutoScalingGroup_TagProperty struct { // 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 diff --git a/cloudformation/autoscaling/aws-autoscaling-launchconfiguration.go b/cloudformation/autoscaling/aws-autoscaling-launchconfiguration.go index 8ee3f767a6..6ce99af70b 100644 --- a/cloudformation/autoscaling/aws-autoscaling-launchconfiguration.go +++ b/cloudformation/autoscaling/aws-autoscaling-launchconfiguration.go @@ -110,6 +110,9 @@ type LaunchConfiguration struct { // 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 @@ -127,12 +130,14 @@ func (r LaunchConfiguration) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -146,6 +151,7 @@ func (r *LaunchConfiguration) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -169,5 +175,8 @@ func (r *LaunchConfiguration) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/autoscaling/aws-autoscaling-launchconfiguration_blockdevice.go b/cloudformation/autoscaling/aws-autoscaling-launchconfiguration_blockdevice.go index 1824ab9068..c097a0fef2 100644 --- a/cloudformation/autoscaling/aws-autoscaling-launchconfiguration_blockdevice.go +++ b/cloudformation/autoscaling/aws-autoscaling-launchconfiguration_blockdevice.go @@ -46,6 +46,9 @@ type LaunchConfiguration_BlockDevice struct { // 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 diff --git a/cloudformation/autoscaling/aws-autoscaling-launchconfiguration_blockdevicemapping.go b/cloudformation/autoscaling/aws-autoscaling-launchconfiguration_blockdevicemapping.go index df41bd1192..b43622f3da 100644 --- a/cloudformation/autoscaling/aws-autoscaling-launchconfiguration_blockdevicemapping.go +++ b/cloudformation/autoscaling/aws-autoscaling-launchconfiguration_blockdevicemapping.go @@ -36,6 +36,9 @@ type LaunchConfiguration_BlockDeviceMapping struct { // 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 diff --git a/cloudformation/autoscaling/aws-autoscaling-lifecyclehook.go b/cloudformation/autoscaling/aws-autoscaling-lifecyclehook.go index 463edeffb7..0b509b9426 100644 --- a/cloudformation/autoscaling/aws-autoscaling-lifecyclehook.go +++ b/cloudformation/autoscaling/aws-autoscaling-lifecyclehook.go @@ -60,6 +60,9 @@ type LifecycleHook struct { // 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 @@ -77,12 +80,14 @@ func (r LifecycleHook) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -96,6 +101,7 @@ func (r *LifecycleHook) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -119,5 +125,8 @@ func (r *LifecycleHook) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/autoscaling/aws-autoscaling-scalingpolicy.go b/cloudformation/autoscaling/aws-autoscaling-scalingpolicy.go index cb2cc6e910..dcf1f97070 100644 --- a/cloudformation/autoscaling/aws-autoscaling-scalingpolicy.go +++ b/cloudformation/autoscaling/aws-autoscaling-scalingpolicy.go @@ -70,6 +70,9 @@ type ScalingPolicy struct { // 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 @@ -87,12 +90,14 @@ func (r ScalingPolicy) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -106,6 +111,7 @@ func (r *ScalingPolicy) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -129,5 +135,8 @@ func (r *ScalingPolicy) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/autoscaling/aws-autoscaling-scalingpolicy_customizedmetricspecification.go b/cloudformation/autoscaling/aws-autoscaling-scalingpolicy_customizedmetricspecification.go index 9fb75a7ab0..43c80de46d 100644 --- a/cloudformation/autoscaling/aws-autoscaling-scalingpolicy_customizedmetricspecification.go +++ b/cloudformation/autoscaling/aws-autoscaling-scalingpolicy_customizedmetricspecification.go @@ -41,6 +41,9 @@ type ScalingPolicy_CustomizedMetricSpecification struct { // 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 diff --git a/cloudformation/autoscaling/aws-autoscaling-scalingpolicy_metricdimension.go b/cloudformation/autoscaling/aws-autoscaling-scalingpolicy_metricdimension.go index a15f84b3e0..839051ecdb 100644 --- a/cloudformation/autoscaling/aws-autoscaling-scalingpolicy_metricdimension.go +++ b/cloudformation/autoscaling/aws-autoscaling-scalingpolicy_metricdimension.go @@ -26,6 +26,9 @@ type ScalingPolicy_MetricDimension struct { // 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 diff --git a/cloudformation/autoscaling/aws-autoscaling-scalingpolicy_predefinedmetricspecification.go b/cloudformation/autoscaling/aws-autoscaling-scalingpolicy_predefinedmetricspecification.go index c801ac5405..a67760a6ff 100644 --- a/cloudformation/autoscaling/aws-autoscaling-scalingpolicy_predefinedmetricspecification.go +++ b/cloudformation/autoscaling/aws-autoscaling-scalingpolicy_predefinedmetricspecification.go @@ -26,6 +26,9 @@ type ScalingPolicy_PredefinedMetricSpecification struct { // 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 diff --git a/cloudformation/autoscaling/aws-autoscaling-scalingpolicy_stepadjustment.go b/cloudformation/autoscaling/aws-autoscaling-scalingpolicy_stepadjustment.go index c3b5a10443..c3b27f697c 100644 --- a/cloudformation/autoscaling/aws-autoscaling-scalingpolicy_stepadjustment.go +++ b/cloudformation/autoscaling/aws-autoscaling-scalingpolicy_stepadjustment.go @@ -31,6 +31,9 @@ type ScalingPolicy_StepAdjustment struct { // 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 diff --git a/cloudformation/autoscaling/aws-autoscaling-scalingpolicy_targettrackingconfiguration.go b/cloudformation/autoscaling/aws-autoscaling-scalingpolicy_targettrackingconfiguration.go index 00beac5619..1cac353d93 100644 --- a/cloudformation/autoscaling/aws-autoscaling-scalingpolicy_targettrackingconfiguration.go +++ b/cloudformation/autoscaling/aws-autoscaling-scalingpolicy_targettrackingconfiguration.go @@ -36,6 +36,9 @@ type ScalingPolicy_TargetTrackingConfiguration struct { // 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 diff --git a/cloudformation/autoscaling/aws-autoscaling-scheduledaction.go b/cloudformation/autoscaling/aws-autoscaling-scheduledaction.go index 4b9a51ceb6..52f4ccf7b7 100644 --- a/cloudformation/autoscaling/aws-autoscaling-scheduledaction.go +++ b/cloudformation/autoscaling/aws-autoscaling-scheduledaction.go @@ -55,6 +55,9 @@ type ScheduledAction struct { // 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 @@ -72,12 +75,14 @@ func (r ScheduledAction) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -91,6 +96,7 @@ func (r *ScheduledAction) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -114,5 +120,8 @@ func (r *ScheduledAction) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/autoscalingplans/aws-autoscalingplans-scalingplan.go b/cloudformation/autoscalingplans/aws-autoscalingplans-scalingplan.go index f1311d2877..f3124191fc 100644 --- a/cloudformation/autoscalingplans/aws-autoscalingplans-scalingplan.go +++ b/cloudformation/autoscalingplans/aws-autoscalingplans-scalingplan.go @@ -30,6 +30,9 @@ type ScalingPlan struct { // 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 @@ -47,12 +50,14 @@ func (r ScalingPlan) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -66,6 +71,7 @@ func (r *ScalingPlan) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -89,5 +95,8 @@ func (r *ScalingPlan) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/autoscalingplans/aws-autoscalingplans-scalingplan_applicationsource.go b/cloudformation/autoscalingplans/aws-autoscalingplans-scalingplan_applicationsource.go index 497a337cd0..3df089f350 100644 --- a/cloudformation/autoscalingplans/aws-autoscalingplans-scalingplan_applicationsource.go +++ b/cloudformation/autoscalingplans/aws-autoscalingplans-scalingplan_applicationsource.go @@ -26,6 +26,9 @@ type ScalingPlan_ApplicationSource struct { // 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 diff --git a/cloudformation/autoscalingplans/aws-autoscalingplans-scalingplan_customizedloadmetricspecification.go b/cloudformation/autoscalingplans/aws-autoscalingplans-scalingplan_customizedloadmetricspecification.go index c54c8e6304..f9cc23f98f 100644 --- a/cloudformation/autoscalingplans/aws-autoscalingplans-scalingplan_customizedloadmetricspecification.go +++ b/cloudformation/autoscalingplans/aws-autoscalingplans-scalingplan_customizedloadmetricspecification.go @@ -41,6 +41,9 @@ type ScalingPlan_CustomizedLoadMetricSpecification struct { // 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 diff --git a/cloudformation/autoscalingplans/aws-autoscalingplans-scalingplan_customizedscalingmetricspecification.go b/cloudformation/autoscalingplans/aws-autoscalingplans-scalingplan_customizedscalingmetricspecification.go index cb55768dba..926a10e0df 100644 --- a/cloudformation/autoscalingplans/aws-autoscalingplans-scalingplan_customizedscalingmetricspecification.go +++ b/cloudformation/autoscalingplans/aws-autoscalingplans-scalingplan_customizedscalingmetricspecification.go @@ -41,6 +41,9 @@ type ScalingPlan_CustomizedScalingMetricSpecification struct { // 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 diff --git a/cloudformation/autoscalingplans/aws-autoscalingplans-scalingplan_metricdimension.go b/cloudformation/autoscalingplans/aws-autoscalingplans-scalingplan_metricdimension.go index 0377fed64d..dd4cb792d8 100644 --- a/cloudformation/autoscalingplans/aws-autoscalingplans-scalingplan_metricdimension.go +++ b/cloudformation/autoscalingplans/aws-autoscalingplans-scalingplan_metricdimension.go @@ -26,6 +26,9 @@ type ScalingPlan_MetricDimension struct { // 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 diff --git a/cloudformation/autoscalingplans/aws-autoscalingplans-scalingplan_predefinedloadmetricspecification.go b/cloudformation/autoscalingplans/aws-autoscalingplans-scalingplan_predefinedloadmetricspecification.go index 0d1d71e1e4..eb6a719dc4 100644 --- a/cloudformation/autoscalingplans/aws-autoscalingplans-scalingplan_predefinedloadmetricspecification.go +++ b/cloudformation/autoscalingplans/aws-autoscalingplans-scalingplan_predefinedloadmetricspecification.go @@ -26,6 +26,9 @@ type ScalingPlan_PredefinedLoadMetricSpecification struct { // 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 diff --git a/cloudformation/autoscalingplans/aws-autoscalingplans-scalingplan_predefinedscalingmetricspecification.go b/cloudformation/autoscalingplans/aws-autoscalingplans-scalingplan_predefinedscalingmetricspecification.go index 1b483cc6bd..c292c304c9 100644 --- a/cloudformation/autoscalingplans/aws-autoscalingplans-scalingplan_predefinedscalingmetricspecification.go +++ b/cloudformation/autoscalingplans/aws-autoscalingplans-scalingplan_predefinedscalingmetricspecification.go @@ -26,6 +26,9 @@ type ScalingPlan_PredefinedScalingMetricSpecification struct { // 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 diff --git a/cloudformation/autoscalingplans/aws-autoscalingplans-scalingplan_scalinginstruction.go b/cloudformation/autoscalingplans/aws-autoscalingplans-scalingplan_scalinginstruction.go index a13016153a..a68be34dbf 100644 --- a/cloudformation/autoscalingplans/aws-autoscalingplans-scalingplan_scalinginstruction.go +++ b/cloudformation/autoscalingplans/aws-autoscalingplans-scalingplan_scalinginstruction.go @@ -86,6 +86,9 @@ type ScalingPlan_ScalingInstruction struct { // 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 diff --git a/cloudformation/autoscalingplans/aws-autoscalingplans-scalingplan_tagfilter.go b/cloudformation/autoscalingplans/aws-autoscalingplans-scalingplan_tagfilter.go index 5be9849121..e98e523d9c 100644 --- a/cloudformation/autoscalingplans/aws-autoscalingplans-scalingplan_tagfilter.go +++ b/cloudformation/autoscalingplans/aws-autoscalingplans-scalingplan_tagfilter.go @@ -26,6 +26,9 @@ type ScalingPlan_TagFilter struct { // 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 diff --git a/cloudformation/autoscalingplans/aws-autoscalingplans-scalingplan_targettrackingconfiguration.go b/cloudformation/autoscalingplans/aws-autoscalingplans-scalingplan_targettrackingconfiguration.go index 67b3d714e9..88a03edb59 100644 --- a/cloudformation/autoscalingplans/aws-autoscalingplans-scalingplan_targettrackingconfiguration.go +++ b/cloudformation/autoscalingplans/aws-autoscalingplans-scalingplan_targettrackingconfiguration.go @@ -51,6 +51,9 @@ type ScalingPlan_TargetTrackingConfiguration struct { // 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 diff --git a/cloudformation/backup/aws-backup-backupplan.go b/cloudformation/backup/aws-backup-backupplan.go index d0bd94fa9a..5a6d26b57d 100644 --- a/cloudformation/backup/aws-backup-backupplan.go +++ b/cloudformation/backup/aws-backup-backupplan.go @@ -30,6 +30,9 @@ type BackupPlan struct { // 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 @@ -47,12 +50,14 @@ func (r BackupPlan) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -66,6 +71,7 @@ func (r *BackupPlan) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -89,5 +95,8 @@ func (r *BackupPlan) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/backup/aws-backup-backupplan_backupplanresourcetype.go b/cloudformation/backup/aws-backup-backupplan_backupplanresourcetype.go index 6de2677fd4..9f7c9e7a8a 100644 --- a/cloudformation/backup/aws-backup-backupplan_backupplanresourcetype.go +++ b/cloudformation/backup/aws-backup-backupplan_backupplanresourcetype.go @@ -26,6 +26,9 @@ type BackupPlan_BackupPlanResourceType struct { // 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 diff --git a/cloudformation/backup/aws-backup-backupplan_backupruleresourcetype.go b/cloudformation/backup/aws-backup-backupplan_backupruleresourcetype.go index 1c33a1ed31..343b8cb038 100644 --- a/cloudformation/backup/aws-backup-backupplan_backupruleresourcetype.go +++ b/cloudformation/backup/aws-backup-backupplan_backupruleresourcetype.go @@ -51,6 +51,9 @@ type BackupPlan_BackupRuleResourceType struct { // 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 diff --git a/cloudformation/backup/aws-backup-backupplan_lifecycleresourcetype.go b/cloudformation/backup/aws-backup-backupplan_lifecycleresourcetype.go index 8f75bd34d4..93fc32d8fd 100644 --- a/cloudformation/backup/aws-backup-backupplan_lifecycleresourcetype.go +++ b/cloudformation/backup/aws-backup-backupplan_lifecycleresourcetype.go @@ -26,6 +26,9 @@ type BackupPlan_LifecycleResourceType struct { // 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 diff --git a/cloudformation/backup/aws-backup-backupselection.go b/cloudformation/backup/aws-backup-backupselection.go index 0820adf615..88a5a679b7 100644 --- a/cloudformation/backup/aws-backup-backupselection.go +++ b/cloudformation/backup/aws-backup-backupselection.go @@ -30,6 +30,9 @@ type BackupSelection struct { // 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 @@ -47,12 +50,14 @@ func (r BackupSelection) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -66,6 +71,7 @@ func (r *BackupSelection) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -89,5 +95,8 @@ func (r *BackupSelection) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/backup/aws-backup-backupselection_backupselectionresourcetype.go b/cloudformation/backup/aws-backup-backupselection_backupselectionresourcetype.go index 2f80e96e9b..48d7931d79 100644 --- a/cloudformation/backup/aws-backup-backupselection_backupselectionresourcetype.go +++ b/cloudformation/backup/aws-backup-backupselection_backupselectionresourcetype.go @@ -36,6 +36,9 @@ type BackupSelection_BackupSelectionResourceType struct { // 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 diff --git a/cloudformation/backup/aws-backup-backupselection_conditionresourcetype.go b/cloudformation/backup/aws-backup-backupselection_conditionresourcetype.go index 7ccc647bae..838cda496f 100644 --- a/cloudformation/backup/aws-backup-backupselection_conditionresourcetype.go +++ b/cloudformation/backup/aws-backup-backupselection_conditionresourcetype.go @@ -31,6 +31,9 @@ type BackupSelection_ConditionResourceType struct { // 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 diff --git a/cloudformation/backup/aws-backup-backupvault.go b/cloudformation/backup/aws-backup-backupvault.go index a9951fa2b0..16c7f835a8 100644 --- a/cloudformation/backup/aws-backup-backupvault.go +++ b/cloudformation/backup/aws-backup-backupvault.go @@ -45,6 +45,9 @@ type BackupVault struct { // 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 @@ -62,12 +65,14 @@ func (r BackupVault) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -81,6 +86,7 @@ func (r *BackupVault) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -104,5 +110,8 @@ func (r *BackupVault) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/backup/aws-backup-backupvault_notificationobjecttype.go b/cloudformation/backup/aws-backup-backupvault_notificationobjecttype.go index e247863229..99574d3e99 100644 --- a/cloudformation/backup/aws-backup-backupvault_notificationobjecttype.go +++ b/cloudformation/backup/aws-backup-backupvault_notificationobjecttype.go @@ -26,6 +26,9 @@ type BackupVault_NotificationObjectType struct { // 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 diff --git a/cloudformation/batch/aws-batch-computeenvironment.go b/cloudformation/batch/aws-batch-computeenvironment.go index 9d22ca1c2a..5118f3512b 100644 --- a/cloudformation/batch/aws-batch-computeenvironment.go +++ b/cloudformation/batch/aws-batch-computeenvironment.go @@ -45,6 +45,9 @@ type ComputeEnvironment struct { // 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 @@ -62,12 +65,14 @@ func (r ComputeEnvironment) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -81,6 +86,7 @@ func (r *ComputeEnvironment) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -104,5 +110,8 @@ func (r *ComputeEnvironment) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/batch/aws-batch-computeenvironment_computeresources.go b/cloudformation/batch/aws-batch-computeenvironment_computeresources.go index 75edad0c33..598f5b9a23 100644 --- a/cloudformation/batch/aws-batch-computeenvironment_computeresources.go +++ b/cloudformation/batch/aws-batch-computeenvironment_computeresources.go @@ -96,6 +96,9 @@ type ComputeEnvironment_ComputeResources struct { // 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 diff --git a/cloudformation/batch/aws-batch-computeenvironment_launchtemplatespecification.go b/cloudformation/batch/aws-batch-computeenvironment_launchtemplatespecification.go index b761bf3be7..11fffa913a 100644 --- a/cloudformation/batch/aws-batch-computeenvironment_launchtemplatespecification.go +++ b/cloudformation/batch/aws-batch-computeenvironment_launchtemplatespecification.go @@ -31,6 +31,9 @@ type ComputeEnvironment_LaunchTemplateSpecification struct { // 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 diff --git a/cloudformation/batch/aws-batch-jobdefinition.go b/cloudformation/batch/aws-batch-jobdefinition.go index efe90e9b11..50cbd16f5d 100644 --- a/cloudformation/batch/aws-batch-jobdefinition.go +++ b/cloudformation/batch/aws-batch-jobdefinition.go @@ -55,6 +55,9 @@ type JobDefinition struct { // 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 @@ -72,12 +75,14 @@ func (r JobDefinition) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -91,6 +96,7 @@ func (r *JobDefinition) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -114,5 +120,8 @@ func (r *JobDefinition) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/batch/aws-batch-jobdefinition_containerproperties.go b/cloudformation/batch/aws-batch-jobdefinition_containerproperties.go index 67d9031cc7..f47e1435ff 100644 --- a/cloudformation/batch/aws-batch-jobdefinition_containerproperties.go +++ b/cloudformation/batch/aws-batch-jobdefinition_containerproperties.go @@ -91,6 +91,9 @@ type JobDefinition_ContainerProperties struct { // 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 diff --git a/cloudformation/batch/aws-batch-jobdefinition_device.go b/cloudformation/batch/aws-batch-jobdefinition_device.go index 57da35d996..64fcb4df3f 100644 --- a/cloudformation/batch/aws-batch-jobdefinition_device.go +++ b/cloudformation/batch/aws-batch-jobdefinition_device.go @@ -31,6 +31,9 @@ type JobDefinition_Device struct { // 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 diff --git a/cloudformation/batch/aws-batch-jobdefinition_environment.go b/cloudformation/batch/aws-batch-jobdefinition_environment.go index 80786822d7..eddd8606b5 100644 --- a/cloudformation/batch/aws-batch-jobdefinition_environment.go +++ b/cloudformation/batch/aws-batch-jobdefinition_environment.go @@ -26,6 +26,9 @@ type JobDefinition_Environment struct { // 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 diff --git a/cloudformation/batch/aws-batch-jobdefinition_linuxparameters.go b/cloudformation/batch/aws-batch-jobdefinition_linuxparameters.go index a434bd4e42..8c80505a4c 100644 --- a/cloudformation/batch/aws-batch-jobdefinition_linuxparameters.go +++ b/cloudformation/batch/aws-batch-jobdefinition_linuxparameters.go @@ -21,6 +21,9 @@ type JobDefinition_LinuxParameters struct { // 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 diff --git a/cloudformation/batch/aws-batch-jobdefinition_mountpoints.go b/cloudformation/batch/aws-batch-jobdefinition_mountpoints.go index 3beb8d160f..91a80ab7ea 100644 --- a/cloudformation/batch/aws-batch-jobdefinition_mountpoints.go +++ b/cloudformation/batch/aws-batch-jobdefinition_mountpoints.go @@ -31,6 +31,9 @@ type JobDefinition_MountPoints struct { // 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 diff --git a/cloudformation/batch/aws-batch-jobdefinition_nodeproperties.go b/cloudformation/batch/aws-batch-jobdefinition_nodeproperties.go index 74bfa6e546..e59432e8ab 100644 --- a/cloudformation/batch/aws-batch-jobdefinition_nodeproperties.go +++ b/cloudformation/batch/aws-batch-jobdefinition_nodeproperties.go @@ -31,6 +31,9 @@ type JobDefinition_NodeProperties struct { // 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 diff --git a/cloudformation/batch/aws-batch-jobdefinition_noderangeproperty.go b/cloudformation/batch/aws-batch-jobdefinition_noderangeproperty.go index ea6495ce3a..918f99a9de 100644 --- a/cloudformation/batch/aws-batch-jobdefinition_noderangeproperty.go +++ b/cloudformation/batch/aws-batch-jobdefinition_noderangeproperty.go @@ -26,6 +26,9 @@ type JobDefinition_NodeRangeProperty struct { // 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 diff --git a/cloudformation/batch/aws-batch-jobdefinition_resourcerequirement.go b/cloudformation/batch/aws-batch-jobdefinition_resourcerequirement.go index a1571afa58..8c70b7b619 100644 --- a/cloudformation/batch/aws-batch-jobdefinition_resourcerequirement.go +++ b/cloudformation/batch/aws-batch-jobdefinition_resourcerequirement.go @@ -26,6 +26,9 @@ type JobDefinition_ResourceRequirement struct { // 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 diff --git a/cloudformation/batch/aws-batch-jobdefinition_retrystrategy.go b/cloudformation/batch/aws-batch-jobdefinition_retrystrategy.go index 96eb04474a..591ca42c8e 100644 --- a/cloudformation/batch/aws-batch-jobdefinition_retrystrategy.go +++ b/cloudformation/batch/aws-batch-jobdefinition_retrystrategy.go @@ -21,6 +21,9 @@ type JobDefinition_RetryStrategy struct { // 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 diff --git a/cloudformation/batch/aws-batch-jobdefinition_timeout.go b/cloudformation/batch/aws-batch-jobdefinition_timeout.go index 11889ab9ba..61c0f245fe 100644 --- a/cloudformation/batch/aws-batch-jobdefinition_timeout.go +++ b/cloudformation/batch/aws-batch-jobdefinition_timeout.go @@ -21,6 +21,9 @@ type JobDefinition_Timeout struct { // 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 diff --git a/cloudformation/batch/aws-batch-jobdefinition_ulimit.go b/cloudformation/batch/aws-batch-jobdefinition_ulimit.go index d0a56f4a58..d8ca535d89 100644 --- a/cloudformation/batch/aws-batch-jobdefinition_ulimit.go +++ b/cloudformation/batch/aws-batch-jobdefinition_ulimit.go @@ -31,6 +31,9 @@ type JobDefinition_Ulimit struct { // 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 diff --git a/cloudformation/batch/aws-batch-jobdefinition_volumes.go b/cloudformation/batch/aws-batch-jobdefinition_volumes.go index 806e6e36f3..037c5ca80e 100644 --- a/cloudformation/batch/aws-batch-jobdefinition_volumes.go +++ b/cloudformation/batch/aws-batch-jobdefinition_volumes.go @@ -26,6 +26,9 @@ type JobDefinition_Volumes struct { // 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 diff --git a/cloudformation/batch/aws-batch-jobdefinition_volumeshost.go b/cloudformation/batch/aws-batch-jobdefinition_volumeshost.go index 6db165f201..c1475bd91b 100644 --- a/cloudformation/batch/aws-batch-jobdefinition_volumeshost.go +++ b/cloudformation/batch/aws-batch-jobdefinition_volumeshost.go @@ -21,6 +21,9 @@ type JobDefinition_VolumesHost struct { // 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 diff --git a/cloudformation/batch/aws-batch-jobqueue.go b/cloudformation/batch/aws-batch-jobqueue.go index 9b4da25876..5dc8e04f26 100644 --- a/cloudformation/batch/aws-batch-jobqueue.go +++ b/cloudformation/batch/aws-batch-jobqueue.go @@ -40,6 +40,9 @@ type JobQueue struct { // 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 @@ -57,12 +60,14 @@ func (r JobQueue) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -76,6 +81,7 @@ func (r *JobQueue) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -99,5 +105,8 @@ func (r *JobQueue) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/batch/aws-batch-jobqueue_computeenvironmentorder.go b/cloudformation/batch/aws-batch-jobqueue_computeenvironmentorder.go index f3540fd891..46e1fa0fe8 100644 --- a/cloudformation/batch/aws-batch-jobqueue_computeenvironmentorder.go +++ b/cloudformation/batch/aws-batch-jobqueue_computeenvironmentorder.go @@ -26,6 +26,9 @@ type JobQueue_ComputeEnvironmentOrder struct { // 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 diff --git a/cloudformation/budgets/aws-budgets-budget.go b/cloudformation/budgets/aws-budgets-budget.go index 9bbb34277b..2465fe275e 100644 --- a/cloudformation/budgets/aws-budgets-budget.go +++ b/cloudformation/budgets/aws-budgets-budget.go @@ -30,6 +30,9 @@ type Budget struct { // 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 @@ -47,12 +50,14 @@ func (r Budget) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -66,6 +71,7 @@ func (r *Budget) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -89,5 +95,8 @@ func (r *Budget) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/budgets/aws-budgets-budget_budgetdata.go b/cloudformation/budgets/aws-budgets-budget_budgetdata.go index 01feb34c5f..ba4a25be5b 100644 --- a/cloudformation/budgets/aws-budgets-budget_budgetdata.go +++ b/cloudformation/budgets/aws-budgets-budget_budgetdata.go @@ -56,6 +56,9 @@ type Budget_BudgetData struct { // 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 diff --git a/cloudformation/budgets/aws-budgets-budget_costtypes.go b/cloudformation/budgets/aws-budgets-budget_costtypes.go index 887ea93c4a..1d43fb3e89 100644 --- a/cloudformation/budgets/aws-budgets-budget_costtypes.go +++ b/cloudformation/budgets/aws-budgets-budget_costtypes.go @@ -71,6 +71,9 @@ type Budget_CostTypes struct { // 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 diff --git a/cloudformation/budgets/aws-budgets-budget_notification.go b/cloudformation/budgets/aws-budgets-budget_notification.go index 64db02a12b..d633cf3e8a 100644 --- a/cloudformation/budgets/aws-budgets-budget_notification.go +++ b/cloudformation/budgets/aws-budgets-budget_notification.go @@ -36,6 +36,9 @@ type Budget_Notification struct { // 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 diff --git a/cloudformation/budgets/aws-budgets-budget_notificationwithsubscribers.go b/cloudformation/budgets/aws-budgets-budget_notificationwithsubscribers.go index 35c5d6c6ec..1bed822db3 100644 --- a/cloudformation/budgets/aws-budgets-budget_notificationwithsubscribers.go +++ b/cloudformation/budgets/aws-budgets-budget_notificationwithsubscribers.go @@ -26,6 +26,9 @@ type Budget_NotificationWithSubscribers struct { // 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 diff --git a/cloudformation/budgets/aws-budgets-budget_spend.go b/cloudformation/budgets/aws-budgets-budget_spend.go index f33e218755..c4141b2cc4 100644 --- a/cloudformation/budgets/aws-budgets-budget_spend.go +++ b/cloudformation/budgets/aws-budgets-budget_spend.go @@ -26,6 +26,9 @@ type Budget_Spend struct { // 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 diff --git a/cloudformation/budgets/aws-budgets-budget_subscriber.go b/cloudformation/budgets/aws-budgets-budget_subscriber.go index fe74f0129c..63191787f8 100644 --- a/cloudformation/budgets/aws-budgets-budget_subscriber.go +++ b/cloudformation/budgets/aws-budgets-budget_subscriber.go @@ -26,6 +26,9 @@ type Budget_Subscriber struct { // 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 diff --git a/cloudformation/budgets/aws-budgets-budget_timeperiod.go b/cloudformation/budgets/aws-budgets-budget_timeperiod.go index f11b283f66..15320e1dce 100644 --- a/cloudformation/budgets/aws-budgets-budget_timeperiod.go +++ b/cloudformation/budgets/aws-budgets-budget_timeperiod.go @@ -26,6 +26,9 @@ type Budget_TimePeriod struct { // 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 diff --git a/cloudformation/certificatemanager/aws-certificatemanager-certificate.go b/cloudformation/certificatemanager/aws-certificatemanager-certificate.go index 146710bf0a..7fe6195de4 100644 --- a/cloudformation/certificatemanager/aws-certificatemanager-certificate.go +++ b/cloudformation/certificatemanager/aws-certificatemanager-certificate.go @@ -46,6 +46,9 @@ type Certificate struct { // 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 @@ -63,12 +66,14 @@ func (r Certificate) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -82,6 +87,7 @@ func (r *Certificate) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -105,5 +111,8 @@ func (r *Certificate) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/certificatemanager/aws-certificatemanager-certificate_domainvalidationoption.go b/cloudformation/certificatemanager/aws-certificatemanager-certificate_domainvalidationoption.go index 9cb2fbedca..94e692d945 100644 --- a/cloudformation/certificatemanager/aws-certificatemanager-certificate_domainvalidationoption.go +++ b/cloudformation/certificatemanager/aws-certificatemanager-certificate_domainvalidationoption.go @@ -26,6 +26,9 @@ type Certificate_DomainValidationOption struct { // 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 diff --git a/cloudformation/cloud9/aws-cloud9-environmentec2.go b/cloudformation/cloud9/aws-cloud9-environmentec2.go index 0af2c7594e..2fdc930720 100644 --- a/cloudformation/cloud9/aws-cloud9-environmentec2.go +++ b/cloudformation/cloud9/aws-cloud9-environmentec2.go @@ -6,6 +6,7 @@ import ( "fmt" "github.com/awslabs/goformation/v4/cloudformation/policies" + "github.com/awslabs/goformation/v4/cloudformation/tags" ) // EnvironmentEC2 AWS CloudFormation Resource (AWS::Cloud9::EnvironmentEC2) @@ -47,6 +48,11 @@ type EnvironmentEC2 struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloud9-environmentec2.html#cfn-cloud9-environmentec2-subnetid SubnetId string `json:"SubnetId,omitempty"` + // Tags AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloud9-environmentec2.html#cfn-cloud9-environmentec2-tags + Tags []tags.Tag `json:"Tags,omitempty"` + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` @@ -55,6 +61,9 @@ type EnvironmentEC2 struct { // 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 @@ -72,12 +81,14 @@ func (r EnvironmentEC2) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -91,6 +102,7 @@ func (r *EnvironmentEC2) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -114,5 +126,8 @@ func (r *EnvironmentEC2) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/cloud9/aws-cloud9-environmentec2_repository.go b/cloudformation/cloud9/aws-cloud9-environmentec2_repository.go index 2a209fae83..bdb34d2743 100644 --- a/cloudformation/cloud9/aws-cloud9-environmentec2_repository.go +++ b/cloudformation/cloud9/aws-cloud9-environmentec2_repository.go @@ -26,6 +26,9 @@ type EnvironmentEC2_Repository struct { // 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 diff --git a/cloudformation/cloudformation/aws-cloudformation-customresource.go b/cloudformation/cloudformation/aws-cloudformation-customresource.go index cba800514b..73852f093b 100644 --- a/cloudformation/cloudformation/aws-cloudformation-customresource.go +++ b/cloudformation/cloudformation/aws-cloudformation-customresource.go @@ -25,6 +25,9 @@ type CustomResource struct { // 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 @@ -42,12 +45,14 @@ func (r CustomResource) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -61,6 +66,7 @@ func (r *CustomResource) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -84,5 +90,8 @@ func (r *CustomResource) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/cloudformation/aws-cloudformation-macro.go b/cloudformation/cloudformation/aws-cloudformation-macro.go index 9abc501f3c..1ecf3327e7 100644 --- a/cloudformation/cloudformation/aws-cloudformation-macro.go +++ b/cloudformation/cloudformation/aws-cloudformation-macro.go @@ -45,6 +45,9 @@ type Macro struct { // 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 @@ -62,12 +65,14 @@ func (r Macro) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -81,6 +86,7 @@ func (r *Macro) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -104,5 +110,8 @@ func (r *Macro) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/cloudformation/aws-cloudformation-stack.go b/cloudformation/cloudformation/aws-cloudformation-stack.go index 5e0c3f504f..0cd018d2b2 100644 --- a/cloudformation/cloudformation/aws-cloudformation-stack.go +++ b/cloudformation/cloudformation/aws-cloudformation-stack.go @@ -46,6 +46,9 @@ type Stack struct { // 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 @@ -63,12 +66,14 @@ func (r Stack) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -82,6 +87,7 @@ func (r *Stack) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -105,5 +111,8 @@ func (r *Stack) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/cloudformation/aws-cloudformation-waitcondition.go b/cloudformation/cloudformation/aws-cloudformation-waitcondition.go index f90f019ea7..402726cb7e 100644 --- a/cloudformation/cloudformation/aws-cloudformation-waitcondition.go +++ b/cloudformation/cloudformation/aws-cloudformation-waitcondition.go @@ -38,6 +38,9 @@ type WaitCondition struct { // 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 @@ -55,6 +58,7 @@ func (r WaitCondition) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` CreationPolicy *policies.CreationPolicy `json:"CreationPolicy,omitempty"` }{ @@ -63,6 +67,7 @@ func (r WaitCondition) MarshalJSON() ([]byte, error) { DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, CreationPolicy: r.AWSCloudFormationCreationPolicy, }) @@ -78,6 +83,7 @@ func (r *WaitCondition) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -101,5 +107,8 @@ func (r *WaitCondition) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/cloudformation/aws-cloudformation-waitconditionhandle.go b/cloudformation/cloudformation/aws-cloudformation-waitconditionhandle.go index 0995bb73c9..f1440774af 100644 --- a/cloudformation/cloudformation/aws-cloudformation-waitconditionhandle.go +++ b/cloudformation/cloudformation/aws-cloudformation-waitconditionhandle.go @@ -20,6 +20,9 @@ type WaitConditionHandle struct { // 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 @@ -37,12 +40,14 @@ func (r WaitConditionHandle) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -56,6 +61,7 @@ func (r *WaitConditionHandle) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -79,5 +85,8 @@ func (r *WaitConditionHandle) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/cloudformation/tag.go b/cloudformation/cloudformation/tag.go index 17e0242dcc..19031b1b97 100644 --- a/cloudformation/cloudformation/tag.go +++ b/cloudformation/cloudformation/tag.go @@ -26,6 +26,9 @@ type Tag struct { // 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 diff --git a/cloudformation/cloudfront/aws-cloudfront-cloudfrontoriginaccessidentity.go b/cloudformation/cloudfront/aws-cloudfront-cloudfrontoriginaccessidentity.go index e64a432752..a505b8ad40 100644 --- a/cloudformation/cloudfront/aws-cloudfront-cloudfrontoriginaccessidentity.go +++ b/cloudformation/cloudfront/aws-cloudfront-cloudfrontoriginaccessidentity.go @@ -25,6 +25,9 @@ type CloudFrontOriginAccessIdentity struct { // 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 @@ -42,12 +45,14 @@ func (r CloudFrontOriginAccessIdentity) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -61,6 +66,7 @@ func (r *CloudFrontOriginAccessIdentity) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -84,5 +90,8 @@ func (r *CloudFrontOriginAccessIdentity) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/cloudfront/aws-cloudfront-cloudfrontoriginaccessidentity_cloudfrontoriginaccessidentityconfig.go b/cloudformation/cloudfront/aws-cloudfront-cloudfrontoriginaccessidentity_cloudfrontoriginaccessidentityconfig.go index 808890ca2f..d2ef5196a7 100644 --- a/cloudformation/cloudfront/aws-cloudfront-cloudfrontoriginaccessidentity_cloudfrontoriginaccessidentityconfig.go +++ b/cloudformation/cloudfront/aws-cloudfront-cloudfrontoriginaccessidentity_cloudfrontoriginaccessidentityconfig.go @@ -21,6 +21,9 @@ type CloudFrontOriginAccessIdentity_CloudFrontOriginAccessIdentityConfig struct // 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 diff --git a/cloudformation/cloudfront/aws-cloudfront-distribution.go b/cloudformation/cloudfront/aws-cloudfront-distribution.go index a1272533e6..e809a949e5 100644 --- a/cloudformation/cloudfront/aws-cloudfront-distribution.go +++ b/cloudformation/cloudfront/aws-cloudfront-distribution.go @@ -31,6 +31,9 @@ type Distribution struct { // 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 @@ -48,12 +51,14 @@ func (r Distribution) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -67,6 +72,7 @@ func (r *Distribution) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -90,5 +96,8 @@ func (r *Distribution) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/cloudfront/aws-cloudfront-distribution_cachebehavior.go b/cloudformation/cloudfront/aws-cloudfront-distribution_cachebehavior.go index c49bf24687..d8d4f09cb1 100644 --- a/cloudformation/cloudfront/aws-cloudfront-distribution_cachebehavior.go +++ b/cloudformation/cloudfront/aws-cloudfront-distribution_cachebehavior.go @@ -86,6 +86,9 @@ type Distribution_CacheBehavior struct { // 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 diff --git a/cloudformation/cloudfront/aws-cloudfront-distribution_cookies.go b/cloudformation/cloudfront/aws-cloudfront-distribution_cookies.go index b941286cba..ed8e6a687a 100644 --- a/cloudformation/cloudfront/aws-cloudfront-distribution_cookies.go +++ b/cloudformation/cloudfront/aws-cloudfront-distribution_cookies.go @@ -26,6 +26,9 @@ type Distribution_Cookies struct { // 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 diff --git a/cloudformation/cloudfront/aws-cloudfront-distribution_customerrorresponse.go b/cloudformation/cloudfront/aws-cloudfront-distribution_customerrorresponse.go index d8094bc0cb..ab8fa9eef1 100644 --- a/cloudformation/cloudfront/aws-cloudfront-distribution_customerrorresponse.go +++ b/cloudformation/cloudfront/aws-cloudfront-distribution_customerrorresponse.go @@ -36,6 +36,9 @@ type Distribution_CustomErrorResponse struct { // 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 diff --git a/cloudformation/cloudfront/aws-cloudfront-distribution_customoriginconfig.go b/cloudformation/cloudfront/aws-cloudfront-distribution_customoriginconfig.go index 16f1d312d7..b3e32076ad 100644 --- a/cloudformation/cloudfront/aws-cloudfront-distribution_customoriginconfig.go +++ b/cloudformation/cloudfront/aws-cloudfront-distribution_customoriginconfig.go @@ -46,6 +46,9 @@ type Distribution_CustomOriginConfig struct { // 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 diff --git a/cloudformation/cloudfront/aws-cloudfront-distribution_defaultcachebehavior.go b/cloudformation/cloudfront/aws-cloudfront-distribution_defaultcachebehavior.go index 9f2b0e367d..bbb74bc70d 100644 --- a/cloudformation/cloudfront/aws-cloudfront-distribution_defaultcachebehavior.go +++ b/cloudformation/cloudfront/aws-cloudfront-distribution_defaultcachebehavior.go @@ -81,6 +81,9 @@ type Distribution_DefaultCacheBehavior struct { // 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 diff --git a/cloudformation/cloudfront/aws-cloudfront-distribution_distributionconfig.go b/cloudformation/cloudfront/aws-cloudfront-distribution_distributionconfig.go index 0d17d2fb91..7c74f0b09b 100644 --- a/cloudformation/cloudfront/aws-cloudfront-distribution_distributionconfig.go +++ b/cloudformation/cloudfront/aws-cloudfront-distribution_distributionconfig.go @@ -91,6 +91,9 @@ type Distribution_DistributionConfig struct { // 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 diff --git a/cloudformation/cloudfront/aws-cloudfront-distribution_forwardedvalues.go b/cloudformation/cloudfront/aws-cloudfront-distribution_forwardedvalues.go index 113b6e8183..e86b05ee9c 100644 --- a/cloudformation/cloudfront/aws-cloudfront-distribution_forwardedvalues.go +++ b/cloudformation/cloudfront/aws-cloudfront-distribution_forwardedvalues.go @@ -36,6 +36,9 @@ type Distribution_ForwardedValues struct { // 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 diff --git a/cloudformation/cloudfront/aws-cloudfront-distribution_georestriction.go b/cloudformation/cloudfront/aws-cloudfront-distribution_georestriction.go index a0cda9c7be..7fde54d333 100644 --- a/cloudformation/cloudfront/aws-cloudfront-distribution_georestriction.go +++ b/cloudformation/cloudfront/aws-cloudfront-distribution_georestriction.go @@ -26,6 +26,9 @@ type Distribution_GeoRestriction struct { // 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 diff --git a/cloudformation/cloudfront/aws-cloudfront-distribution_lambdafunctionassociation.go b/cloudformation/cloudfront/aws-cloudfront-distribution_lambdafunctionassociation.go index cd1a062f70..83c16e3789 100644 --- a/cloudformation/cloudfront/aws-cloudfront-distribution_lambdafunctionassociation.go +++ b/cloudformation/cloudfront/aws-cloudfront-distribution_lambdafunctionassociation.go @@ -26,6 +26,9 @@ type Distribution_LambdaFunctionAssociation struct { // 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 diff --git a/cloudformation/cloudfront/aws-cloudfront-distribution_logging.go b/cloudformation/cloudfront/aws-cloudfront-distribution_logging.go index 3c5eaaa865..c8aeac5f42 100644 --- a/cloudformation/cloudfront/aws-cloudfront-distribution_logging.go +++ b/cloudformation/cloudfront/aws-cloudfront-distribution_logging.go @@ -31,6 +31,9 @@ type Distribution_Logging struct { // 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 diff --git a/cloudformation/cloudfront/aws-cloudfront-distribution_origin.go b/cloudformation/cloudfront/aws-cloudfront-distribution_origin.go index b26527ec11..45216b8696 100644 --- a/cloudformation/cloudfront/aws-cloudfront-distribution_origin.go +++ b/cloudformation/cloudfront/aws-cloudfront-distribution_origin.go @@ -46,6 +46,9 @@ type Distribution_Origin struct { // 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 diff --git a/cloudformation/cloudfront/aws-cloudfront-distribution_origincustomheader.go b/cloudformation/cloudfront/aws-cloudfront-distribution_origincustomheader.go index 84f76a30ca..83bbd98acd 100644 --- a/cloudformation/cloudfront/aws-cloudfront-distribution_origincustomheader.go +++ b/cloudformation/cloudfront/aws-cloudfront-distribution_origincustomheader.go @@ -26,6 +26,9 @@ type Distribution_OriginCustomHeader struct { // 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 diff --git a/cloudformation/cloudfront/aws-cloudfront-distribution_restrictions.go b/cloudformation/cloudfront/aws-cloudfront-distribution_restrictions.go index 09ae98a900..16aee4ff39 100644 --- a/cloudformation/cloudfront/aws-cloudfront-distribution_restrictions.go +++ b/cloudformation/cloudfront/aws-cloudfront-distribution_restrictions.go @@ -21,6 +21,9 @@ type Distribution_Restrictions struct { // 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 diff --git a/cloudformation/cloudfront/aws-cloudfront-distribution_s3originconfig.go b/cloudformation/cloudfront/aws-cloudfront-distribution_s3originconfig.go index b6b57ef7bf..38cafea176 100644 --- a/cloudformation/cloudfront/aws-cloudfront-distribution_s3originconfig.go +++ b/cloudformation/cloudfront/aws-cloudfront-distribution_s3originconfig.go @@ -21,6 +21,9 @@ type Distribution_S3OriginConfig struct { // 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 diff --git a/cloudformation/cloudfront/aws-cloudfront-distribution_viewercertificate.go b/cloudformation/cloudfront/aws-cloudfront-distribution_viewercertificate.go index 5246777426..7aed597184 100644 --- a/cloudformation/cloudfront/aws-cloudfront-distribution_viewercertificate.go +++ b/cloudformation/cloudfront/aws-cloudfront-distribution_viewercertificate.go @@ -41,6 +41,9 @@ type Distribution_ViewerCertificate struct { // 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 diff --git a/cloudformation/cloudfront/aws-cloudfront-streamingdistribution.go b/cloudformation/cloudfront/aws-cloudfront-streamingdistribution.go index d8a7a2da55..8e99c17c34 100644 --- a/cloudformation/cloudfront/aws-cloudfront-streamingdistribution.go +++ b/cloudformation/cloudfront/aws-cloudfront-streamingdistribution.go @@ -31,6 +31,9 @@ type StreamingDistribution struct { // 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 @@ -48,12 +51,14 @@ func (r StreamingDistribution) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -67,6 +72,7 @@ func (r *StreamingDistribution) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -90,5 +96,8 @@ func (r *StreamingDistribution) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/cloudfront/aws-cloudfront-streamingdistribution_logging.go b/cloudformation/cloudfront/aws-cloudfront-streamingdistribution_logging.go index e5b8f5ca26..3951677f7e 100644 --- a/cloudformation/cloudfront/aws-cloudfront-streamingdistribution_logging.go +++ b/cloudformation/cloudfront/aws-cloudfront-streamingdistribution_logging.go @@ -31,6 +31,9 @@ type StreamingDistribution_Logging struct { // 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 diff --git a/cloudformation/cloudfront/aws-cloudfront-streamingdistribution_s3origin.go b/cloudformation/cloudfront/aws-cloudfront-streamingdistribution_s3origin.go index 07401e7ddb..8d26f328b6 100644 --- a/cloudformation/cloudfront/aws-cloudfront-streamingdistribution_s3origin.go +++ b/cloudformation/cloudfront/aws-cloudfront-streamingdistribution_s3origin.go @@ -26,6 +26,9 @@ type StreamingDistribution_S3Origin struct { // 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 diff --git a/cloudformation/cloudfront/aws-cloudfront-streamingdistribution_streamingdistributionconfig.go b/cloudformation/cloudfront/aws-cloudfront-streamingdistribution_streamingdistributionconfig.go index d912301218..f8224c3632 100644 --- a/cloudformation/cloudfront/aws-cloudfront-streamingdistribution_streamingdistributionconfig.go +++ b/cloudformation/cloudfront/aws-cloudfront-streamingdistribution_streamingdistributionconfig.go @@ -51,6 +51,9 @@ type StreamingDistribution_StreamingDistributionConfig struct { // 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 diff --git a/cloudformation/cloudfront/aws-cloudfront-streamingdistribution_trustedsigners.go b/cloudformation/cloudfront/aws-cloudfront-streamingdistribution_trustedsigners.go index f30a7bdc6a..fe4b93e5d4 100644 --- a/cloudformation/cloudfront/aws-cloudfront-streamingdistribution_trustedsigners.go +++ b/cloudformation/cloudfront/aws-cloudfront-streamingdistribution_trustedsigners.go @@ -26,6 +26,9 @@ type StreamingDistribution_TrustedSigners struct { // 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 diff --git a/cloudformation/cloudtrail/aws-cloudtrail-trail.go b/cloudformation/cloudtrail/aws-cloudtrail-trail.go index 1e2929c992..14f8e8977b 100644 --- a/cloudformation/cloudtrail/aws-cloudtrail-trail.go +++ b/cloudformation/cloudtrail/aws-cloudtrail-trail.go @@ -86,6 +86,9 @@ type Trail struct { // 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 @@ -103,12 +106,14 @@ func (r Trail) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -122,6 +127,7 @@ func (r *Trail) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -145,5 +151,8 @@ func (r *Trail) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/cloudtrail/aws-cloudtrail-trail_dataresource.go b/cloudformation/cloudtrail/aws-cloudtrail-trail_dataresource.go index b904d10c1e..d4e81e317c 100644 --- a/cloudformation/cloudtrail/aws-cloudtrail-trail_dataresource.go +++ b/cloudformation/cloudtrail/aws-cloudtrail-trail_dataresource.go @@ -26,6 +26,9 @@ type Trail_DataResource struct { // 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 diff --git a/cloudformation/cloudtrail/aws-cloudtrail-trail_eventselector.go b/cloudformation/cloudtrail/aws-cloudtrail-trail_eventselector.go index a72af0da11..7346fc5f22 100644 --- a/cloudformation/cloudtrail/aws-cloudtrail-trail_eventselector.go +++ b/cloudformation/cloudtrail/aws-cloudtrail-trail_eventselector.go @@ -31,6 +31,9 @@ type Trail_EventSelector struct { // 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 diff --git a/cloudformation/cloudwatch/aws-cloudwatch-alarm.go b/cloudformation/cloudwatch/aws-cloudwatch-alarm.go index 2bab500c3b..33f45b9616 100644 --- a/cloudformation/cloudwatch/aws-cloudwatch-alarm.go +++ b/cloudformation/cloudwatch/aws-cloudwatch-alarm.go @@ -125,6 +125,9 @@ type Alarm struct { // 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 @@ -142,12 +145,14 @@ func (r Alarm) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -161,6 +166,7 @@ func (r *Alarm) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -184,5 +190,8 @@ func (r *Alarm) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/cloudwatch/aws-cloudwatch-alarm_dimension.go b/cloudformation/cloudwatch/aws-cloudwatch-alarm_dimension.go index 21088e4acf..f3d6c92a6d 100644 --- a/cloudformation/cloudwatch/aws-cloudwatch-alarm_dimension.go +++ b/cloudformation/cloudwatch/aws-cloudwatch-alarm_dimension.go @@ -26,6 +26,9 @@ type Alarm_Dimension struct { // 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 diff --git a/cloudformation/cloudwatch/aws-cloudwatch-alarm_metric.go b/cloudformation/cloudwatch/aws-cloudwatch-alarm_metric.go index f9d77f10a7..98e2369070 100644 --- a/cloudformation/cloudwatch/aws-cloudwatch-alarm_metric.go +++ b/cloudformation/cloudwatch/aws-cloudwatch-alarm_metric.go @@ -31,6 +31,9 @@ type Alarm_Metric struct { // 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 diff --git a/cloudformation/cloudwatch/aws-cloudwatch-alarm_metricdataquery.go b/cloudformation/cloudwatch/aws-cloudwatch-alarm_metricdataquery.go index ef170f6b81..960f78996f 100644 --- a/cloudformation/cloudwatch/aws-cloudwatch-alarm_metricdataquery.go +++ b/cloudformation/cloudwatch/aws-cloudwatch-alarm_metricdataquery.go @@ -41,6 +41,9 @@ type Alarm_MetricDataQuery struct { // 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 diff --git a/cloudformation/cloudwatch/aws-cloudwatch-alarm_metricstat.go b/cloudformation/cloudwatch/aws-cloudwatch-alarm_metricstat.go index c4d65b99ce..83ec608f30 100644 --- a/cloudformation/cloudwatch/aws-cloudwatch-alarm_metricstat.go +++ b/cloudformation/cloudwatch/aws-cloudwatch-alarm_metricstat.go @@ -36,6 +36,9 @@ type Alarm_MetricStat struct { // 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 diff --git a/cloudformation/cloudwatch/aws-cloudwatch-anomalydetector.go b/cloudformation/cloudwatch/aws-cloudwatch-anomalydetector.go index b613808a04..266ccbb8d9 100644 --- a/cloudformation/cloudwatch/aws-cloudwatch-anomalydetector.go +++ b/cloudformation/cloudwatch/aws-cloudwatch-anomalydetector.go @@ -45,6 +45,9 @@ type AnomalyDetector struct { // 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 @@ -62,12 +65,14 @@ func (r AnomalyDetector) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -81,6 +86,7 @@ func (r *AnomalyDetector) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -104,5 +110,8 @@ func (r *AnomalyDetector) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/cloudwatch/aws-cloudwatch-anomalydetector_configuration.go b/cloudformation/cloudwatch/aws-cloudwatch-anomalydetector_configuration.go index a8f762da4a..ca4d238373 100644 --- a/cloudformation/cloudwatch/aws-cloudwatch-anomalydetector_configuration.go +++ b/cloudformation/cloudwatch/aws-cloudwatch-anomalydetector_configuration.go @@ -26,6 +26,9 @@ type AnomalyDetector_Configuration struct { // 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 diff --git a/cloudformation/cloudwatch/aws-cloudwatch-anomalydetector_dimension.go b/cloudformation/cloudwatch/aws-cloudwatch-anomalydetector_dimension.go index e743d14d07..721de69550 100644 --- a/cloudformation/cloudwatch/aws-cloudwatch-anomalydetector_dimension.go +++ b/cloudformation/cloudwatch/aws-cloudwatch-anomalydetector_dimension.go @@ -26,6 +26,9 @@ type AnomalyDetector_Dimension struct { // 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 diff --git a/cloudformation/cloudwatch/aws-cloudwatch-anomalydetector_range.go b/cloudformation/cloudwatch/aws-cloudwatch-anomalydetector_range.go index 556b3fcd86..f271249d40 100644 --- a/cloudformation/cloudwatch/aws-cloudwatch-anomalydetector_range.go +++ b/cloudformation/cloudwatch/aws-cloudwatch-anomalydetector_range.go @@ -26,6 +26,9 @@ type AnomalyDetector_Range struct { // 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 diff --git a/cloudformation/cloudwatch/aws-cloudwatch-dashboard.go b/cloudformation/cloudwatch/aws-cloudwatch-dashboard.go index 6a3abcc8eb..b008f95e4b 100644 --- a/cloudformation/cloudwatch/aws-cloudwatch-dashboard.go +++ b/cloudformation/cloudwatch/aws-cloudwatch-dashboard.go @@ -30,6 +30,9 @@ type Dashboard struct { // 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 @@ -47,12 +50,14 @@ func (r Dashboard) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -66,6 +71,7 @@ func (r *Dashboard) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -89,5 +95,8 @@ func (r *Dashboard) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/cloudwatch/aws-cloudwatch-insightrule.go b/cloudformation/cloudwatch/aws-cloudwatch-insightrule.go index dc102c8143..710a2a2e7c 100644 --- a/cloudformation/cloudwatch/aws-cloudwatch-insightrule.go +++ b/cloudformation/cloudwatch/aws-cloudwatch-insightrule.go @@ -35,6 +35,9 @@ type InsightRule struct { // 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 @@ -52,12 +55,14 @@ func (r InsightRule) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -71,6 +76,7 @@ func (r *InsightRule) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -94,5 +100,8 @@ func (r *InsightRule) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/codebuild/aws-codebuild-project.go b/cloudformation/codebuild/aws-codebuild-project.go index e94ae348fb..d0811beae6 100644 --- a/cloudformation/codebuild/aws-codebuild-project.go +++ b/cloudformation/codebuild/aws-codebuild-project.go @@ -116,6 +116,9 @@ type Project struct { // 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 @@ -133,12 +136,14 @@ func (r Project) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -152,6 +157,7 @@ func (r *Project) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -175,5 +181,8 @@ func (r *Project) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/codebuild/aws-codebuild-project_artifacts.go b/cloudformation/codebuild/aws-codebuild-project_artifacts.go index e09f2d3b85..62a93f7292 100644 --- a/cloudformation/codebuild/aws-codebuild-project_artifacts.go +++ b/cloudformation/codebuild/aws-codebuild-project_artifacts.go @@ -61,6 +61,9 @@ type Project_Artifacts struct { // 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 diff --git a/cloudformation/codebuild/aws-codebuild-project_cloudwatchlogsconfig.go b/cloudformation/codebuild/aws-codebuild-project_cloudwatchlogsconfig.go index af4aa3ebe2..77b3353d93 100644 --- a/cloudformation/codebuild/aws-codebuild-project_cloudwatchlogsconfig.go +++ b/cloudformation/codebuild/aws-codebuild-project_cloudwatchlogsconfig.go @@ -31,6 +31,9 @@ type Project_CloudWatchLogsConfig struct { // 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 diff --git a/cloudformation/codebuild/aws-codebuild-project_environment.go b/cloudformation/codebuild/aws-codebuild-project_environment.go index d785632257..7fefacccfa 100644 --- a/cloudformation/codebuild/aws-codebuild-project_environment.go +++ b/cloudformation/codebuild/aws-codebuild-project_environment.go @@ -56,6 +56,9 @@ type Project_Environment struct { // 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 diff --git a/cloudformation/codebuild/aws-codebuild-project_environmentvariable.go b/cloudformation/codebuild/aws-codebuild-project_environmentvariable.go index 370b7b8da8..81f96bea38 100644 --- a/cloudformation/codebuild/aws-codebuild-project_environmentvariable.go +++ b/cloudformation/codebuild/aws-codebuild-project_environmentvariable.go @@ -31,6 +31,9 @@ type Project_EnvironmentVariable struct { // 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 diff --git a/cloudformation/codebuild/aws-codebuild-project_filtergroup.go b/cloudformation/codebuild/aws-codebuild-project_filtergroup.go index 52856dd754..6c98cf8a5c 100644 --- a/cloudformation/codebuild/aws-codebuild-project_filtergroup.go +++ b/cloudformation/codebuild/aws-codebuild-project_filtergroup.go @@ -16,6 +16,9 @@ type Project_FilterGroup struct { // 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 diff --git a/cloudformation/codebuild/aws-codebuild-project_gitsubmodulesconfig.go b/cloudformation/codebuild/aws-codebuild-project_gitsubmodulesconfig.go index 358e39542c..0e7cdf7c74 100644 --- a/cloudformation/codebuild/aws-codebuild-project_gitsubmodulesconfig.go +++ b/cloudformation/codebuild/aws-codebuild-project_gitsubmodulesconfig.go @@ -21,6 +21,9 @@ type Project_GitSubmodulesConfig struct { // 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 diff --git a/cloudformation/codebuild/aws-codebuild-project_logsconfig.go b/cloudformation/codebuild/aws-codebuild-project_logsconfig.go index 98a990476c..eeaeb8aa3f 100644 --- a/cloudformation/codebuild/aws-codebuild-project_logsconfig.go +++ b/cloudformation/codebuild/aws-codebuild-project_logsconfig.go @@ -26,6 +26,9 @@ type Project_LogsConfig struct { // 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 diff --git a/cloudformation/codebuild/aws-codebuild-project_projectcache.go b/cloudformation/codebuild/aws-codebuild-project_projectcache.go index fb52688331..74c6dd4d74 100644 --- a/cloudformation/codebuild/aws-codebuild-project_projectcache.go +++ b/cloudformation/codebuild/aws-codebuild-project_projectcache.go @@ -31,6 +31,9 @@ type Project_ProjectCache struct { // 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 diff --git a/cloudformation/codebuild/aws-codebuild-project_projectsourceversion.go b/cloudformation/codebuild/aws-codebuild-project_projectsourceversion.go index 1fd59093b0..47094a55c9 100644 --- a/cloudformation/codebuild/aws-codebuild-project_projectsourceversion.go +++ b/cloudformation/codebuild/aws-codebuild-project_projectsourceversion.go @@ -26,6 +26,9 @@ type Project_ProjectSourceVersion struct { // 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 diff --git a/cloudformation/codebuild/aws-codebuild-project_projecttriggers.go b/cloudformation/codebuild/aws-codebuild-project_projecttriggers.go index a91ee01cd2..d2a1b1b2b1 100644 --- a/cloudformation/codebuild/aws-codebuild-project_projecttriggers.go +++ b/cloudformation/codebuild/aws-codebuild-project_projecttriggers.go @@ -26,6 +26,9 @@ type Project_ProjectTriggers struct { // 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 diff --git a/cloudformation/codebuild/aws-codebuild-project_registrycredential.go b/cloudformation/codebuild/aws-codebuild-project_registrycredential.go index 1b78116b90..0e2400ae40 100644 --- a/cloudformation/codebuild/aws-codebuild-project_registrycredential.go +++ b/cloudformation/codebuild/aws-codebuild-project_registrycredential.go @@ -26,6 +26,9 @@ type Project_RegistryCredential struct { // 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 diff --git a/cloudformation/codebuild/aws-codebuild-project_s3logsconfig.go b/cloudformation/codebuild/aws-codebuild-project_s3logsconfig.go index 29ebcf580c..22be938aa5 100644 --- a/cloudformation/codebuild/aws-codebuild-project_s3logsconfig.go +++ b/cloudformation/codebuild/aws-codebuild-project_s3logsconfig.go @@ -31,6 +31,9 @@ type Project_S3LogsConfig struct { // 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 diff --git a/cloudformation/codebuild/aws-codebuild-project_source.go b/cloudformation/codebuild/aws-codebuild-project_source.go index 90564185d7..623c018dea 100644 --- a/cloudformation/codebuild/aws-codebuild-project_source.go +++ b/cloudformation/codebuild/aws-codebuild-project_source.go @@ -61,6 +61,9 @@ type Project_Source struct { // 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 diff --git a/cloudformation/codebuild/aws-codebuild-project_sourceauth.go b/cloudformation/codebuild/aws-codebuild-project_sourceauth.go index c77168208c..6cd7b7fb40 100644 --- a/cloudformation/codebuild/aws-codebuild-project_sourceauth.go +++ b/cloudformation/codebuild/aws-codebuild-project_sourceauth.go @@ -26,6 +26,9 @@ type Project_SourceAuth struct { // 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 diff --git a/cloudformation/codebuild/aws-codebuild-project_vpcconfig.go b/cloudformation/codebuild/aws-codebuild-project_vpcconfig.go index 47f7798de6..c1a4c2f67a 100644 --- a/cloudformation/codebuild/aws-codebuild-project_vpcconfig.go +++ b/cloudformation/codebuild/aws-codebuild-project_vpcconfig.go @@ -31,6 +31,9 @@ type Project_VpcConfig struct { // 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 diff --git a/cloudformation/codebuild/aws-codebuild-project_webhookfilter.go b/cloudformation/codebuild/aws-codebuild-project_webhookfilter.go index 07364d655a..695faa7505 100644 --- a/cloudformation/codebuild/aws-codebuild-project_webhookfilter.go +++ b/cloudformation/codebuild/aws-codebuild-project_webhookfilter.go @@ -31,6 +31,9 @@ type Project_WebhookFilter struct { // 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 diff --git a/cloudformation/codebuild/aws-codebuild-reportgroup.go b/cloudformation/codebuild/aws-codebuild-reportgroup.go new file mode 100644 index 0000000000..4a81a5fef5 --- /dev/null +++ b/cloudformation/codebuild/aws-codebuild-reportgroup.go @@ -0,0 +1,107 @@ +package codebuild + +import ( + "bytes" + "encoding/json" + "fmt" + + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// ReportGroup AWS CloudFormation Resource (AWS::CodeBuild::ReportGroup) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-reportgroup.html +type ReportGroup struct { + + // ExportConfig AWS CloudFormation Property + // Required: true + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-reportgroup.html#cfn-codebuild-reportgroup-exportconfig + ExportConfig *ReportGroup_ReportExportConfig `json:"ExportConfig,omitempty"` + + // Name AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-reportgroup.html#cfn-codebuild-reportgroup-name + Name string `json:"Name,omitempty"` + + // Type AWS CloudFormation Property + // Required: true + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-reportgroup.html#cfn-codebuild-reportgroup-type + Type string `json:"Type,omitempty"` + + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `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 *ReportGroup) AWSCloudFormationType() string { + return "AWS::CodeBuild::ReportGroup" +} + +// MarshalJSON is a custom JSON marshalling hook that embeds this object into +// an AWS CloudFormation JSON resource's 'Properties' field and adds a 'Type'. +func (r ReportGroup) MarshalJSON() ([]byte, error) { + type Properties ReportGroup + return json.Marshal(&struct { + Type string + Properties Properties + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` + }{ + Type: r.AWSCloudFormationType(), + Properties: (Properties)(r), + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, + }) +} + +// UnmarshalJSON is a custom JSON unmarshalling hook that strips the outer +// AWS CloudFormation resource object, and just keeps the 'Properties' field. +func (r *ReportGroup) UnmarshalJSON(b []byte) error { + type Properties ReportGroup + res := &struct { + Type string + Properties *Properties + DependsOn []string + Metadata map[string]interface{} + DeletionPolicy string + Condition string + }{} + + dec := json.NewDecoder(bytes.NewReader(b)) + dec.DisallowUnknownFields() // Force error if unknown field is found + + if err := dec.Decode(&res); err != nil { + fmt.Printf("ERROR: %s\n", err) + return err + } + + // If the resource has no Properties set, it could be nil + if res.Properties != nil { + *r = ReportGroup(*res.Properties) + } + if res.DependsOn != nil { + r.AWSCloudFormationDependsOn = res.DependsOn + } + if res.Metadata != nil { + r.AWSCloudFormationMetadata = res.Metadata + } + if res.DeletionPolicy != "" { + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } + return nil +} diff --git a/cloudformation/codebuild/aws-codebuild-reportgroup_reportexportconfig.go b/cloudformation/codebuild/aws-codebuild-reportgroup_reportexportconfig.go new file mode 100644 index 0000000000..f5560ac759 --- /dev/null +++ b/cloudformation/codebuild/aws-codebuild-reportgroup_reportexportconfig.go @@ -0,0 +1,37 @@ +package codebuild + +import ( + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// ReportGroup_ReportExportConfig AWS CloudFormation Resource (AWS::CodeBuild::ReportGroup.ReportExportConfig) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-reportgroup-reportexportconfig.html +type ReportGroup_ReportExportConfig struct { + + // ExportConfigType AWS CloudFormation Property + // Required: true + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-reportgroup-reportexportconfig.html#cfn-codebuild-reportgroup-reportexportconfig-exportconfigtype + ExportConfigType string `json:"ExportConfigType,omitempty"` + + // S3Destination AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-reportgroup-reportexportconfig.html#cfn-codebuild-reportgroup-reportexportconfig-s3destination + S3Destination *ReportGroup_S3ReportExportConfig `json:"S3Destination,omitempty"` + + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `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 *ReportGroup_ReportExportConfig) AWSCloudFormationType() string { + return "AWS::CodeBuild::ReportGroup.ReportExportConfig" +} diff --git a/cloudformation/codebuild/aws-codebuild-reportgroup_s3reportexportconfig.go b/cloudformation/codebuild/aws-codebuild-reportgroup_s3reportexportconfig.go new file mode 100644 index 0000000000..529188ed95 --- /dev/null +++ b/cloudformation/codebuild/aws-codebuild-reportgroup_s3reportexportconfig.go @@ -0,0 +1,52 @@ +package codebuild + +import ( + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// ReportGroup_S3ReportExportConfig AWS CloudFormation Resource (AWS::CodeBuild::ReportGroup.S3ReportExportConfig) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-reportgroup-s3reportexportconfig.html +type ReportGroup_S3ReportExportConfig struct { + + // Bucket AWS CloudFormation Property + // Required: true + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-reportgroup-s3reportexportconfig.html#cfn-codebuild-reportgroup-s3reportexportconfig-bucket + Bucket string `json:"Bucket,omitempty"` + + // EncryptionDisabled AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-reportgroup-s3reportexportconfig.html#cfn-codebuild-reportgroup-s3reportexportconfig-encryptiondisabled + EncryptionDisabled bool `json:"EncryptionDisabled,omitempty"` + + // EncryptionKey AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-reportgroup-s3reportexportconfig.html#cfn-codebuild-reportgroup-s3reportexportconfig-encryptionkey + EncryptionKey string `json:"EncryptionKey,omitempty"` + + // Packaging AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-reportgroup-s3reportexportconfig.html#cfn-codebuild-reportgroup-s3reportexportconfig-packaging + Packaging string `json:"Packaging,omitempty"` + + // Path AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-reportgroup-s3reportexportconfig.html#cfn-codebuild-reportgroup-s3reportexportconfig-path + Path string `json:"Path,omitempty"` + + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `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 *ReportGroup_S3ReportExportConfig) AWSCloudFormationType() string { + return "AWS::CodeBuild::ReportGroup.S3ReportExportConfig" +} diff --git a/cloudformation/codebuild/aws-codebuild-sourcecredential.go b/cloudformation/codebuild/aws-codebuild-sourcecredential.go index 21567d468e..472284c2f0 100644 --- a/cloudformation/codebuild/aws-codebuild-sourcecredential.go +++ b/cloudformation/codebuild/aws-codebuild-sourcecredential.go @@ -40,6 +40,9 @@ type SourceCredential struct { // 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 @@ -57,12 +60,14 @@ func (r SourceCredential) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -76,6 +81,7 @@ func (r *SourceCredential) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -99,5 +105,8 @@ func (r *SourceCredential) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/codecommit/aws-codecommit-repository.go b/cloudformation/codecommit/aws-codecommit-repository.go index 8807c46d3f..8eba0654d0 100644 --- a/cloudformation/codecommit/aws-codecommit-repository.go +++ b/cloudformation/codecommit/aws-codecommit-repository.go @@ -46,6 +46,9 @@ type Repository struct { // 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 @@ -63,12 +66,14 @@ func (r Repository) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -82,6 +87,7 @@ func (r *Repository) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -105,5 +111,8 @@ func (r *Repository) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/codecommit/aws-codecommit-repository_code.go b/cloudformation/codecommit/aws-codecommit-repository_code.go index 149886e295..b8880acfc0 100644 --- a/cloudformation/codecommit/aws-codecommit-repository_code.go +++ b/cloudformation/codecommit/aws-codecommit-repository_code.go @@ -21,6 +21,9 @@ type Repository_Code struct { // 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 diff --git a/cloudformation/codecommit/aws-codecommit-repository_repositorytrigger.go b/cloudformation/codecommit/aws-codecommit-repository_repositorytrigger.go index 28b4007c1e..734ff3f26e 100644 --- a/cloudformation/codecommit/aws-codecommit-repository_repositorytrigger.go +++ b/cloudformation/codecommit/aws-codecommit-repository_repositorytrigger.go @@ -41,6 +41,9 @@ type Repository_RepositoryTrigger struct { // 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 diff --git a/cloudformation/codecommit/aws-codecommit-repository_s3.go b/cloudformation/codecommit/aws-codecommit-repository_s3.go index b2a8800f1b..9efb9cffd7 100644 --- a/cloudformation/codecommit/aws-codecommit-repository_s3.go +++ b/cloudformation/codecommit/aws-codecommit-repository_s3.go @@ -31,6 +31,9 @@ type Repository_S3 struct { // 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 diff --git a/cloudformation/codedeploy/aws-codedeploy-application.go b/cloudformation/codedeploy/aws-codedeploy-application.go index e49cc6bdfd..212014c047 100644 --- a/cloudformation/codedeploy/aws-codedeploy-application.go +++ b/cloudformation/codedeploy/aws-codedeploy-application.go @@ -30,6 +30,9 @@ type Application struct { // 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 @@ -47,12 +50,14 @@ func (r Application) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -66,6 +71,7 @@ func (r *Application) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -89,5 +95,8 @@ func (r *Application) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/codedeploy/aws-codedeploy-deploymentconfig.go b/cloudformation/codedeploy/aws-codedeploy-deploymentconfig.go index 74b39f274a..d6ee80d923 100644 --- a/cloudformation/codedeploy/aws-codedeploy-deploymentconfig.go +++ b/cloudformation/codedeploy/aws-codedeploy-deploymentconfig.go @@ -30,6 +30,9 @@ type DeploymentConfig struct { // 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 @@ -47,12 +50,14 @@ func (r DeploymentConfig) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -66,6 +71,7 @@ func (r *DeploymentConfig) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -89,5 +95,8 @@ func (r *DeploymentConfig) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/codedeploy/aws-codedeploy-deploymentconfig_minimumhealthyhosts.go b/cloudformation/codedeploy/aws-codedeploy-deploymentconfig_minimumhealthyhosts.go index 4939e506fc..550489d573 100644 --- a/cloudformation/codedeploy/aws-codedeploy-deploymentconfig_minimumhealthyhosts.go +++ b/cloudformation/codedeploy/aws-codedeploy-deploymentconfig_minimumhealthyhosts.go @@ -26,6 +26,9 @@ type DeploymentConfig_MinimumHealthyHosts struct { // 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 diff --git a/cloudformation/codedeploy/aws-codedeploy-deploymentgroup.go b/cloudformation/codedeploy/aws-codedeploy-deploymentgroup.go index dddec17af8..82fb220084 100644 --- a/cloudformation/codedeploy/aws-codedeploy-deploymentgroup.go +++ b/cloudformation/codedeploy/aws-codedeploy-deploymentgroup.go @@ -95,6 +95,9 @@ type DeploymentGroup struct { // 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 @@ -112,12 +115,14 @@ func (r DeploymentGroup) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -131,6 +136,7 @@ func (r *DeploymentGroup) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -154,5 +160,8 @@ func (r *DeploymentGroup) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/codedeploy/aws-codedeploy-deploymentgroup_alarm.go b/cloudformation/codedeploy/aws-codedeploy-deploymentgroup_alarm.go index 9045fce659..a27b0a2707 100644 --- a/cloudformation/codedeploy/aws-codedeploy-deploymentgroup_alarm.go +++ b/cloudformation/codedeploy/aws-codedeploy-deploymentgroup_alarm.go @@ -21,6 +21,9 @@ type DeploymentGroup_Alarm struct { // 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 diff --git a/cloudformation/codedeploy/aws-codedeploy-deploymentgroup_alarmconfiguration.go b/cloudformation/codedeploy/aws-codedeploy-deploymentgroup_alarmconfiguration.go index bdd0308844..46ca3477c1 100644 --- a/cloudformation/codedeploy/aws-codedeploy-deploymentgroup_alarmconfiguration.go +++ b/cloudformation/codedeploy/aws-codedeploy-deploymentgroup_alarmconfiguration.go @@ -31,6 +31,9 @@ type DeploymentGroup_AlarmConfiguration struct { // 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 diff --git a/cloudformation/codedeploy/aws-codedeploy-deploymentgroup_autorollbackconfiguration.go b/cloudformation/codedeploy/aws-codedeploy-deploymentgroup_autorollbackconfiguration.go index 737f2b0b9b..e9c0bb5dc7 100644 --- a/cloudformation/codedeploy/aws-codedeploy-deploymentgroup_autorollbackconfiguration.go +++ b/cloudformation/codedeploy/aws-codedeploy-deploymentgroup_autorollbackconfiguration.go @@ -26,6 +26,9 @@ type DeploymentGroup_AutoRollbackConfiguration struct { // 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 diff --git a/cloudformation/codedeploy/aws-codedeploy-deploymentgroup_deployment.go b/cloudformation/codedeploy/aws-codedeploy-deploymentgroup_deployment.go index 87353b0798..47ae59b383 100644 --- a/cloudformation/codedeploy/aws-codedeploy-deploymentgroup_deployment.go +++ b/cloudformation/codedeploy/aws-codedeploy-deploymentgroup_deployment.go @@ -31,6 +31,9 @@ type DeploymentGroup_Deployment struct { // 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 diff --git a/cloudformation/codedeploy/aws-codedeploy-deploymentgroup_deploymentstyle.go b/cloudformation/codedeploy/aws-codedeploy-deploymentgroup_deploymentstyle.go index 353cc4288a..8802922823 100644 --- a/cloudformation/codedeploy/aws-codedeploy-deploymentgroup_deploymentstyle.go +++ b/cloudformation/codedeploy/aws-codedeploy-deploymentgroup_deploymentstyle.go @@ -26,6 +26,9 @@ type DeploymentGroup_DeploymentStyle struct { // 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 diff --git a/cloudformation/codedeploy/aws-codedeploy-deploymentgroup_ec2tagfilter.go b/cloudformation/codedeploy/aws-codedeploy-deploymentgroup_ec2tagfilter.go index 2dfd9225e1..790d41ca39 100644 --- a/cloudformation/codedeploy/aws-codedeploy-deploymentgroup_ec2tagfilter.go +++ b/cloudformation/codedeploy/aws-codedeploy-deploymentgroup_ec2tagfilter.go @@ -31,6 +31,9 @@ type DeploymentGroup_EC2TagFilter struct { // 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 diff --git a/cloudformation/codedeploy/aws-codedeploy-deploymentgroup_ec2tagset.go b/cloudformation/codedeploy/aws-codedeploy-deploymentgroup_ec2tagset.go index 3299cf9e09..652b31f439 100644 --- a/cloudformation/codedeploy/aws-codedeploy-deploymentgroup_ec2tagset.go +++ b/cloudformation/codedeploy/aws-codedeploy-deploymentgroup_ec2tagset.go @@ -21,6 +21,9 @@ type DeploymentGroup_EC2TagSet struct { // 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 diff --git a/cloudformation/codedeploy/aws-codedeploy-deploymentgroup_ec2tagsetlistobject.go b/cloudformation/codedeploy/aws-codedeploy-deploymentgroup_ec2tagsetlistobject.go index f90c934aa3..2eb0fc757a 100644 --- a/cloudformation/codedeploy/aws-codedeploy-deploymentgroup_ec2tagsetlistobject.go +++ b/cloudformation/codedeploy/aws-codedeploy-deploymentgroup_ec2tagsetlistobject.go @@ -21,6 +21,9 @@ type DeploymentGroup_EC2TagSetListObject struct { // 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 diff --git a/cloudformation/codedeploy/aws-codedeploy-deploymentgroup_elbinfo.go b/cloudformation/codedeploy/aws-codedeploy-deploymentgroup_elbinfo.go index 6a0dea3fb4..1a37f3735a 100644 --- a/cloudformation/codedeploy/aws-codedeploy-deploymentgroup_elbinfo.go +++ b/cloudformation/codedeploy/aws-codedeploy-deploymentgroup_elbinfo.go @@ -21,6 +21,9 @@ type DeploymentGroup_ELBInfo struct { // 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 diff --git a/cloudformation/codedeploy/aws-codedeploy-deploymentgroup_githublocation.go b/cloudformation/codedeploy/aws-codedeploy-deploymentgroup_githublocation.go index 783fe07e8a..ef11445627 100644 --- a/cloudformation/codedeploy/aws-codedeploy-deploymentgroup_githublocation.go +++ b/cloudformation/codedeploy/aws-codedeploy-deploymentgroup_githublocation.go @@ -26,6 +26,9 @@ type DeploymentGroup_GitHubLocation struct { // 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 diff --git a/cloudformation/codedeploy/aws-codedeploy-deploymentgroup_loadbalancerinfo.go b/cloudformation/codedeploy/aws-codedeploy-deploymentgroup_loadbalancerinfo.go index 7fd8d06838..e3558683a5 100644 --- a/cloudformation/codedeploy/aws-codedeploy-deploymentgroup_loadbalancerinfo.go +++ b/cloudformation/codedeploy/aws-codedeploy-deploymentgroup_loadbalancerinfo.go @@ -26,6 +26,9 @@ type DeploymentGroup_LoadBalancerInfo struct { // 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 diff --git a/cloudformation/codedeploy/aws-codedeploy-deploymentgroup_onpremisestagset.go b/cloudformation/codedeploy/aws-codedeploy-deploymentgroup_onpremisestagset.go index a402a9a23a..2005d4bd18 100644 --- a/cloudformation/codedeploy/aws-codedeploy-deploymentgroup_onpremisestagset.go +++ b/cloudformation/codedeploy/aws-codedeploy-deploymentgroup_onpremisestagset.go @@ -21,6 +21,9 @@ type DeploymentGroup_OnPremisesTagSet struct { // 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 diff --git a/cloudformation/codedeploy/aws-codedeploy-deploymentgroup_onpremisestagsetlistobject.go b/cloudformation/codedeploy/aws-codedeploy-deploymentgroup_onpremisestagsetlistobject.go index 5d3afc320b..c39f476945 100644 --- a/cloudformation/codedeploy/aws-codedeploy-deploymentgroup_onpremisestagsetlistobject.go +++ b/cloudformation/codedeploy/aws-codedeploy-deploymentgroup_onpremisestagsetlistobject.go @@ -21,6 +21,9 @@ type DeploymentGroup_OnPremisesTagSetListObject struct { // 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 diff --git a/cloudformation/codedeploy/aws-codedeploy-deploymentgroup_revisionlocation.go b/cloudformation/codedeploy/aws-codedeploy-deploymentgroup_revisionlocation.go index d7cffb47a8..0b98bd0621 100644 --- a/cloudformation/codedeploy/aws-codedeploy-deploymentgroup_revisionlocation.go +++ b/cloudformation/codedeploy/aws-codedeploy-deploymentgroup_revisionlocation.go @@ -31,6 +31,9 @@ type DeploymentGroup_RevisionLocation struct { // 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 diff --git a/cloudformation/codedeploy/aws-codedeploy-deploymentgroup_s3location.go b/cloudformation/codedeploy/aws-codedeploy-deploymentgroup_s3location.go index dd2a7f03ab..8814a24505 100644 --- a/cloudformation/codedeploy/aws-codedeploy-deploymentgroup_s3location.go +++ b/cloudformation/codedeploy/aws-codedeploy-deploymentgroup_s3location.go @@ -41,6 +41,9 @@ type DeploymentGroup_S3Location struct { // 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 diff --git a/cloudformation/codedeploy/aws-codedeploy-deploymentgroup_tagfilter.go b/cloudformation/codedeploy/aws-codedeploy-deploymentgroup_tagfilter.go index 20ee0a5293..0946d5b324 100644 --- a/cloudformation/codedeploy/aws-codedeploy-deploymentgroup_tagfilter.go +++ b/cloudformation/codedeploy/aws-codedeploy-deploymentgroup_tagfilter.go @@ -31,6 +31,9 @@ type DeploymentGroup_TagFilter struct { // 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 diff --git a/cloudformation/codedeploy/aws-codedeploy-deploymentgroup_targetgroupinfo.go b/cloudformation/codedeploy/aws-codedeploy-deploymentgroup_targetgroupinfo.go index b4aa7d5f8c..a05d125ee2 100644 --- a/cloudformation/codedeploy/aws-codedeploy-deploymentgroup_targetgroupinfo.go +++ b/cloudformation/codedeploy/aws-codedeploy-deploymentgroup_targetgroupinfo.go @@ -21,6 +21,9 @@ type DeploymentGroup_TargetGroupInfo struct { // 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 diff --git a/cloudformation/codedeploy/aws-codedeploy-deploymentgroup_triggerconfig.go b/cloudformation/codedeploy/aws-codedeploy-deploymentgroup_triggerconfig.go index a71414203a..3b74e44c48 100644 --- a/cloudformation/codedeploy/aws-codedeploy-deploymentgroup_triggerconfig.go +++ b/cloudformation/codedeploy/aws-codedeploy-deploymentgroup_triggerconfig.go @@ -31,6 +31,9 @@ type DeploymentGroup_TriggerConfig struct { // 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 diff --git a/cloudformation/codepipeline/aws-codepipeline-customactiontype.go b/cloudformation/codepipeline/aws-codepipeline-customactiontype.go index e8bf9cfbc9..8b22803444 100644 --- a/cloudformation/codepipeline/aws-codepipeline-customactiontype.go +++ b/cloudformation/codepipeline/aws-codepipeline-customactiontype.go @@ -61,6 +61,9 @@ type CustomActionType struct { // 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 @@ -78,12 +81,14 @@ func (r CustomActionType) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -97,6 +102,7 @@ func (r *CustomActionType) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -120,5 +126,8 @@ func (r *CustomActionType) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/codepipeline/aws-codepipeline-customactiontype_artifactdetails.go b/cloudformation/codepipeline/aws-codepipeline-customactiontype_artifactdetails.go index c1d22d6ae1..99dfa6c24d 100644 --- a/cloudformation/codepipeline/aws-codepipeline-customactiontype_artifactdetails.go +++ b/cloudformation/codepipeline/aws-codepipeline-customactiontype_artifactdetails.go @@ -26,6 +26,9 @@ type CustomActionType_ArtifactDetails struct { // 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 diff --git a/cloudformation/codepipeline/aws-codepipeline-customactiontype_configurationproperties.go b/cloudformation/codepipeline/aws-codepipeline-customactiontype_configurationproperties.go index 199606417e..95dcc0b320 100644 --- a/cloudformation/codepipeline/aws-codepipeline-customactiontype_configurationproperties.go +++ b/cloudformation/codepipeline/aws-codepipeline-customactiontype_configurationproperties.go @@ -51,6 +51,9 @@ type CustomActionType_ConfigurationProperties struct { // 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 diff --git a/cloudformation/codepipeline/aws-codepipeline-customactiontype_settings.go b/cloudformation/codepipeline/aws-codepipeline-customactiontype_settings.go index 41761208bb..122069054e 100644 --- a/cloudformation/codepipeline/aws-codepipeline-customactiontype_settings.go +++ b/cloudformation/codepipeline/aws-codepipeline-customactiontype_settings.go @@ -36,6 +36,9 @@ type CustomActionType_Settings struct { // 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 diff --git a/cloudformation/codepipeline/aws-codepipeline-pipeline.go b/cloudformation/codepipeline/aws-codepipeline-pipeline.go index 2edd10cbfa..2646f86d4a 100644 --- a/cloudformation/codepipeline/aws-codepipeline-pipeline.go +++ b/cloudformation/codepipeline/aws-codepipeline-pipeline.go @@ -61,6 +61,9 @@ type Pipeline struct { // 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 @@ -78,12 +81,14 @@ func (r Pipeline) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -97,6 +102,7 @@ func (r *Pipeline) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -120,5 +126,8 @@ func (r *Pipeline) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/codepipeline/aws-codepipeline-pipeline_actiondeclaration.go b/cloudformation/codepipeline/aws-codepipeline-pipeline_actiondeclaration.go index bb83526d35..d7ac3cebe0 100644 --- a/cloudformation/codepipeline/aws-codepipeline-pipeline_actiondeclaration.go +++ b/cloudformation/codepipeline/aws-codepipeline-pipeline_actiondeclaration.go @@ -61,6 +61,9 @@ type Pipeline_ActionDeclaration struct { // 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 diff --git a/cloudformation/codepipeline/aws-codepipeline-pipeline_actiontypeid.go b/cloudformation/codepipeline/aws-codepipeline-pipeline_actiontypeid.go index cc435de9f1..46b5ef90bc 100644 --- a/cloudformation/codepipeline/aws-codepipeline-pipeline_actiontypeid.go +++ b/cloudformation/codepipeline/aws-codepipeline-pipeline_actiontypeid.go @@ -36,6 +36,9 @@ type Pipeline_ActionTypeId struct { // 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 diff --git a/cloudformation/codepipeline/aws-codepipeline-pipeline_artifactstore.go b/cloudformation/codepipeline/aws-codepipeline-pipeline_artifactstore.go index a862822072..e14f93fa1d 100644 --- a/cloudformation/codepipeline/aws-codepipeline-pipeline_artifactstore.go +++ b/cloudformation/codepipeline/aws-codepipeline-pipeline_artifactstore.go @@ -31,6 +31,9 @@ type Pipeline_ArtifactStore struct { // 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 diff --git a/cloudformation/codepipeline/aws-codepipeline-pipeline_artifactstoremap.go b/cloudformation/codepipeline/aws-codepipeline-pipeline_artifactstoremap.go index d831d555b8..5b027fbaf0 100644 --- a/cloudformation/codepipeline/aws-codepipeline-pipeline_artifactstoremap.go +++ b/cloudformation/codepipeline/aws-codepipeline-pipeline_artifactstoremap.go @@ -26,6 +26,9 @@ type Pipeline_ArtifactStoreMap struct { // 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 diff --git a/cloudformation/codepipeline/aws-codepipeline-pipeline_blockerdeclaration.go b/cloudformation/codepipeline/aws-codepipeline-pipeline_blockerdeclaration.go index 1a14dfac6c..ff51444ddc 100644 --- a/cloudformation/codepipeline/aws-codepipeline-pipeline_blockerdeclaration.go +++ b/cloudformation/codepipeline/aws-codepipeline-pipeline_blockerdeclaration.go @@ -26,6 +26,9 @@ type Pipeline_BlockerDeclaration struct { // 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 diff --git a/cloudformation/codepipeline/aws-codepipeline-pipeline_encryptionkey.go b/cloudformation/codepipeline/aws-codepipeline-pipeline_encryptionkey.go index 87e690aefe..9c642aa6c7 100644 --- a/cloudformation/codepipeline/aws-codepipeline-pipeline_encryptionkey.go +++ b/cloudformation/codepipeline/aws-codepipeline-pipeline_encryptionkey.go @@ -26,6 +26,9 @@ type Pipeline_EncryptionKey struct { // 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 diff --git a/cloudformation/codepipeline/aws-codepipeline-pipeline_inputartifact.go b/cloudformation/codepipeline/aws-codepipeline-pipeline_inputartifact.go index 7084d24f21..7c2dea8def 100644 --- a/cloudformation/codepipeline/aws-codepipeline-pipeline_inputartifact.go +++ b/cloudformation/codepipeline/aws-codepipeline-pipeline_inputartifact.go @@ -21,6 +21,9 @@ type Pipeline_InputArtifact struct { // 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 diff --git a/cloudformation/codepipeline/aws-codepipeline-pipeline_outputartifact.go b/cloudformation/codepipeline/aws-codepipeline-pipeline_outputartifact.go index 2faac859f7..aeae654b47 100644 --- a/cloudformation/codepipeline/aws-codepipeline-pipeline_outputartifact.go +++ b/cloudformation/codepipeline/aws-codepipeline-pipeline_outputartifact.go @@ -21,6 +21,9 @@ type Pipeline_OutputArtifact struct { // 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 diff --git a/cloudformation/codepipeline/aws-codepipeline-pipeline_stagedeclaration.go b/cloudformation/codepipeline/aws-codepipeline-pipeline_stagedeclaration.go index d20151747e..4e203662c3 100644 --- a/cloudformation/codepipeline/aws-codepipeline-pipeline_stagedeclaration.go +++ b/cloudformation/codepipeline/aws-codepipeline-pipeline_stagedeclaration.go @@ -31,6 +31,9 @@ type Pipeline_StageDeclaration struct { // 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 diff --git a/cloudformation/codepipeline/aws-codepipeline-pipeline_stagetransition.go b/cloudformation/codepipeline/aws-codepipeline-pipeline_stagetransition.go index c3346f3e21..825b626946 100644 --- a/cloudformation/codepipeline/aws-codepipeline-pipeline_stagetransition.go +++ b/cloudformation/codepipeline/aws-codepipeline-pipeline_stagetransition.go @@ -26,6 +26,9 @@ type Pipeline_StageTransition struct { // 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 diff --git a/cloudformation/codepipeline/aws-codepipeline-webhook.go b/cloudformation/codepipeline/aws-codepipeline-webhook.go index f967b83df2..189c4c32a0 100644 --- a/cloudformation/codepipeline/aws-codepipeline-webhook.go +++ b/cloudformation/codepipeline/aws-codepipeline-webhook.go @@ -60,6 +60,9 @@ type Webhook struct { // 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 @@ -77,12 +80,14 @@ func (r Webhook) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -96,6 +101,7 @@ func (r *Webhook) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -119,5 +125,8 @@ func (r *Webhook) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/codepipeline/aws-codepipeline-webhook_webhookauthconfiguration.go b/cloudformation/codepipeline/aws-codepipeline-webhook_webhookauthconfiguration.go index c37af7a99e..7f607fd16d 100644 --- a/cloudformation/codepipeline/aws-codepipeline-webhook_webhookauthconfiguration.go +++ b/cloudformation/codepipeline/aws-codepipeline-webhook_webhookauthconfiguration.go @@ -26,6 +26,9 @@ type Webhook_WebhookAuthConfiguration struct { // 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 diff --git a/cloudformation/codepipeline/aws-codepipeline-webhook_webhookfilterrule.go b/cloudformation/codepipeline/aws-codepipeline-webhook_webhookfilterrule.go index 4adf72d750..4c83775505 100644 --- a/cloudformation/codepipeline/aws-codepipeline-webhook_webhookfilterrule.go +++ b/cloudformation/codepipeline/aws-codepipeline-webhook_webhookfilterrule.go @@ -26,6 +26,9 @@ type Webhook_WebhookFilterRule struct { // 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 diff --git a/cloudformation/codestar/aws-codestar-githubrepository.go b/cloudformation/codestar/aws-codestar-githubrepository.go index a9b189d46e..8b87794db8 100644 --- a/cloudformation/codestar/aws-codestar-githubrepository.go +++ b/cloudformation/codestar/aws-codestar-githubrepository.go @@ -55,6 +55,9 @@ type GitHubRepository struct { // 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 @@ -72,12 +75,14 @@ func (r GitHubRepository) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -91,6 +96,7 @@ func (r *GitHubRepository) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -114,5 +120,8 @@ func (r *GitHubRepository) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/codestar/aws-codestar-githubrepository_code.go b/cloudformation/codestar/aws-codestar-githubrepository_code.go index f404ae19eb..c6616f5b9f 100644 --- a/cloudformation/codestar/aws-codestar-githubrepository_code.go +++ b/cloudformation/codestar/aws-codestar-githubrepository_code.go @@ -21,6 +21,9 @@ type GitHubRepository_Code struct { // 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 diff --git a/cloudformation/codestar/aws-codestar-githubrepository_s3.go b/cloudformation/codestar/aws-codestar-githubrepository_s3.go index 584b5679ca..a1818a198b 100644 --- a/cloudformation/codestar/aws-codestar-githubrepository_s3.go +++ b/cloudformation/codestar/aws-codestar-githubrepository_s3.go @@ -31,6 +31,9 @@ type GitHubRepository_S3 struct { // 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 diff --git a/cloudformation/codestarnotifications/aws-codestarnotifications-notificationrule.go b/cloudformation/codestarnotifications/aws-codestarnotifications-notificationrule.go index 333089f8ff..3644d81c74 100644 --- a/cloudformation/codestarnotifications/aws-codestarnotifications-notificationrule.go +++ b/cloudformation/codestarnotifications/aws-codestarnotifications-notificationrule.go @@ -55,6 +55,9 @@ type NotificationRule struct { // 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 @@ -72,12 +75,14 @@ func (r NotificationRule) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -91,6 +96,7 @@ func (r *NotificationRule) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -114,5 +120,8 @@ func (r *NotificationRule) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/codestarnotifications/aws-codestarnotifications-notificationrule_target.go b/cloudformation/codestarnotifications/aws-codestarnotifications-notificationrule_target.go index 054b44c06f..8e41347bd6 100644 --- a/cloudformation/codestarnotifications/aws-codestarnotifications-notificationrule_target.go +++ b/cloudformation/codestarnotifications/aws-codestarnotifications-notificationrule_target.go @@ -26,6 +26,9 @@ type NotificationRule_Target struct { // 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 diff --git a/cloudformation/cognito/aws-cognito-identitypool.go b/cloudformation/cognito/aws-cognito-identitypool.go index 2435ea352b..ddc0198238 100644 --- a/cloudformation/cognito/aws-cognito-identitypool.go +++ b/cloudformation/cognito/aws-cognito-identitypool.go @@ -75,6 +75,9 @@ type IdentityPool struct { // 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 @@ -92,12 +95,14 @@ func (r IdentityPool) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -111,6 +116,7 @@ func (r *IdentityPool) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -134,5 +140,8 @@ func (r *IdentityPool) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/cognito/aws-cognito-identitypool_cognitoidentityprovider.go b/cloudformation/cognito/aws-cognito-identitypool_cognitoidentityprovider.go index d761f13057..e75abdf6d8 100644 --- a/cloudformation/cognito/aws-cognito-identitypool_cognitoidentityprovider.go +++ b/cloudformation/cognito/aws-cognito-identitypool_cognitoidentityprovider.go @@ -31,6 +31,9 @@ type IdentityPool_CognitoIdentityProvider struct { // 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 diff --git a/cloudformation/cognito/aws-cognito-identitypool_cognitostreams.go b/cloudformation/cognito/aws-cognito-identitypool_cognitostreams.go index 82c120a88f..939ad08e95 100644 --- a/cloudformation/cognito/aws-cognito-identitypool_cognitostreams.go +++ b/cloudformation/cognito/aws-cognito-identitypool_cognitostreams.go @@ -31,6 +31,9 @@ type IdentityPool_CognitoStreams struct { // 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 diff --git a/cloudformation/cognito/aws-cognito-identitypool_pushsync.go b/cloudformation/cognito/aws-cognito-identitypool_pushsync.go index eb6aa6b9ff..efb1748e79 100644 --- a/cloudformation/cognito/aws-cognito-identitypool_pushsync.go +++ b/cloudformation/cognito/aws-cognito-identitypool_pushsync.go @@ -26,6 +26,9 @@ type IdentityPool_PushSync struct { // 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 diff --git a/cloudformation/cognito/aws-cognito-identitypoolroleattachment.go b/cloudformation/cognito/aws-cognito-identitypoolroleattachment.go index f88ece6492..4e01a37980 100644 --- a/cloudformation/cognito/aws-cognito-identitypoolroleattachment.go +++ b/cloudformation/cognito/aws-cognito-identitypoolroleattachment.go @@ -35,6 +35,9 @@ type IdentityPoolRoleAttachment struct { // 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 @@ -52,12 +55,14 @@ func (r IdentityPoolRoleAttachment) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -71,6 +76,7 @@ func (r *IdentityPoolRoleAttachment) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -94,5 +100,8 @@ func (r *IdentityPoolRoleAttachment) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/cognito/aws-cognito-identitypoolroleattachment_mappingrule.go b/cloudformation/cognito/aws-cognito-identitypoolroleattachment_mappingrule.go index f198cf1ba2..690a0d679a 100644 --- a/cloudformation/cognito/aws-cognito-identitypoolroleattachment_mappingrule.go +++ b/cloudformation/cognito/aws-cognito-identitypoolroleattachment_mappingrule.go @@ -36,6 +36,9 @@ type IdentityPoolRoleAttachment_MappingRule struct { // 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 diff --git a/cloudformation/cognito/aws-cognito-identitypoolroleattachment_rolemapping.go b/cloudformation/cognito/aws-cognito-identitypoolroleattachment_rolemapping.go index 2efc546b2f..f4f7c47f93 100644 --- a/cloudformation/cognito/aws-cognito-identitypoolroleattachment_rolemapping.go +++ b/cloudformation/cognito/aws-cognito-identitypoolroleattachment_rolemapping.go @@ -36,6 +36,9 @@ type IdentityPoolRoleAttachment_RoleMapping struct { // 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 diff --git a/cloudformation/cognito/aws-cognito-identitypoolroleattachment_rulesconfigurationtype.go b/cloudformation/cognito/aws-cognito-identitypoolroleattachment_rulesconfigurationtype.go index 83afbb552a..3663d24471 100644 --- a/cloudformation/cognito/aws-cognito-identitypoolroleattachment_rulesconfigurationtype.go +++ b/cloudformation/cognito/aws-cognito-identitypoolroleattachment_rulesconfigurationtype.go @@ -21,6 +21,9 @@ type IdentityPoolRoleAttachment_RulesConfigurationType struct { // 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 diff --git a/cloudformation/cognito/aws-cognito-userpool.go b/cloudformation/cognito/aws-cognito-userpool.go index 1bf4193bda..360b36fe14 100644 --- a/cloudformation/cognito/aws-cognito-userpool.go +++ b/cloudformation/cognito/aws-cognito-userpool.go @@ -120,6 +120,9 @@ type UserPool struct { // 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 @@ -137,12 +140,14 @@ func (r UserPool) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -156,6 +161,7 @@ func (r *UserPool) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -179,5 +185,8 @@ func (r *UserPool) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/cognito/aws-cognito-userpool_admincreateuserconfig.go b/cloudformation/cognito/aws-cognito-userpool_admincreateuserconfig.go index 66f101d1d4..794520750e 100644 --- a/cloudformation/cognito/aws-cognito-userpool_admincreateuserconfig.go +++ b/cloudformation/cognito/aws-cognito-userpool_admincreateuserconfig.go @@ -31,6 +31,9 @@ type UserPool_AdminCreateUserConfig struct { // 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 diff --git a/cloudformation/cognito/aws-cognito-userpool_deviceconfiguration.go b/cloudformation/cognito/aws-cognito-userpool_deviceconfiguration.go index d13cd12b7d..3546b27044 100644 --- a/cloudformation/cognito/aws-cognito-userpool_deviceconfiguration.go +++ b/cloudformation/cognito/aws-cognito-userpool_deviceconfiguration.go @@ -26,6 +26,9 @@ type UserPool_DeviceConfiguration struct { // 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 diff --git a/cloudformation/cognito/aws-cognito-userpool_emailconfiguration.go b/cloudformation/cognito/aws-cognito-userpool_emailconfiguration.go index 7099c4b215..700ab648de 100644 --- a/cloudformation/cognito/aws-cognito-userpool_emailconfiguration.go +++ b/cloudformation/cognito/aws-cognito-userpool_emailconfiguration.go @@ -41,6 +41,9 @@ type UserPool_EmailConfiguration struct { // 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 diff --git a/cloudformation/cognito/aws-cognito-userpool_invitemessagetemplate.go b/cloudformation/cognito/aws-cognito-userpool_invitemessagetemplate.go index a556009064..c86f82264f 100644 --- a/cloudformation/cognito/aws-cognito-userpool_invitemessagetemplate.go +++ b/cloudformation/cognito/aws-cognito-userpool_invitemessagetemplate.go @@ -31,6 +31,9 @@ type UserPool_InviteMessageTemplate struct { // 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 diff --git a/cloudformation/cognito/aws-cognito-userpool_lambdaconfig.go b/cloudformation/cognito/aws-cognito-userpool_lambdaconfig.go index 3a39d00bef..79b9a3e25d 100644 --- a/cloudformation/cognito/aws-cognito-userpool_lambdaconfig.go +++ b/cloudformation/cognito/aws-cognito-userpool_lambdaconfig.go @@ -66,6 +66,9 @@ type UserPool_LambdaConfig struct { // 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 diff --git a/cloudformation/cognito/aws-cognito-userpool_numberattributeconstraints.go b/cloudformation/cognito/aws-cognito-userpool_numberattributeconstraints.go index e9a22db2a0..44f827dba0 100644 --- a/cloudformation/cognito/aws-cognito-userpool_numberattributeconstraints.go +++ b/cloudformation/cognito/aws-cognito-userpool_numberattributeconstraints.go @@ -26,6 +26,9 @@ type UserPool_NumberAttributeConstraints struct { // 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 diff --git a/cloudformation/cognito/aws-cognito-userpool_passwordpolicy.go b/cloudformation/cognito/aws-cognito-userpool_passwordpolicy.go index b3b7a38db1..8e6528073e 100644 --- a/cloudformation/cognito/aws-cognito-userpool_passwordpolicy.go +++ b/cloudformation/cognito/aws-cognito-userpool_passwordpolicy.go @@ -46,6 +46,9 @@ type UserPool_PasswordPolicy struct { // 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 diff --git a/cloudformation/cognito/aws-cognito-userpool_policies.go b/cloudformation/cognito/aws-cognito-userpool_policies.go index 6760544387..bc18c2698f 100644 --- a/cloudformation/cognito/aws-cognito-userpool_policies.go +++ b/cloudformation/cognito/aws-cognito-userpool_policies.go @@ -21,6 +21,9 @@ type UserPool_Policies struct { // 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 diff --git a/cloudformation/cognito/aws-cognito-userpool_schemaattribute.go b/cloudformation/cognito/aws-cognito-userpool_schemaattribute.go index 7a67ca9384..ad6ad7283e 100644 --- a/cloudformation/cognito/aws-cognito-userpool_schemaattribute.go +++ b/cloudformation/cognito/aws-cognito-userpool_schemaattribute.go @@ -51,6 +51,9 @@ type UserPool_SchemaAttribute struct { // 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 diff --git a/cloudformation/cognito/aws-cognito-userpool_smsconfiguration.go b/cloudformation/cognito/aws-cognito-userpool_smsconfiguration.go index 7ecebc68a4..8bf16254f9 100644 --- a/cloudformation/cognito/aws-cognito-userpool_smsconfiguration.go +++ b/cloudformation/cognito/aws-cognito-userpool_smsconfiguration.go @@ -26,6 +26,9 @@ type UserPool_SmsConfiguration struct { // 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 diff --git a/cloudformation/cognito/aws-cognito-userpool_stringattributeconstraints.go b/cloudformation/cognito/aws-cognito-userpool_stringattributeconstraints.go index 9b00cdbf3c..7f054c5c60 100644 --- a/cloudformation/cognito/aws-cognito-userpool_stringattributeconstraints.go +++ b/cloudformation/cognito/aws-cognito-userpool_stringattributeconstraints.go @@ -26,6 +26,9 @@ type UserPool_StringAttributeConstraints struct { // 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 diff --git a/cloudformation/cognito/aws-cognito-userpool_userpooladdons.go b/cloudformation/cognito/aws-cognito-userpool_userpooladdons.go index cfe145fd5e..802c96fd38 100644 --- a/cloudformation/cognito/aws-cognito-userpool_userpooladdons.go +++ b/cloudformation/cognito/aws-cognito-userpool_userpooladdons.go @@ -21,6 +21,9 @@ type UserPool_UserPoolAddOns struct { // 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 diff --git a/cloudformation/cognito/aws-cognito-userpool_verificationmessagetemplate.go b/cloudformation/cognito/aws-cognito-userpool_verificationmessagetemplate.go index 4529d3eb23..40b075727a 100644 --- a/cloudformation/cognito/aws-cognito-userpool_verificationmessagetemplate.go +++ b/cloudformation/cognito/aws-cognito-userpool_verificationmessagetemplate.go @@ -46,6 +46,9 @@ type UserPool_VerificationMessageTemplate struct { // 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 diff --git a/cloudformation/cognito/aws-cognito-userpoolclient.go b/cloudformation/cognito/aws-cognito-userpoolclient.go index 28faec7afa..0c006511e1 100644 --- a/cloudformation/cognito/aws-cognito-userpoolclient.go +++ b/cloudformation/cognito/aws-cognito-userpoolclient.go @@ -100,6 +100,9 @@ type UserPoolClient struct { // 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 @@ -117,12 +120,14 @@ func (r UserPoolClient) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -136,6 +141,7 @@ func (r *UserPoolClient) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -159,5 +165,8 @@ func (r *UserPoolClient) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/cognito/aws-cognito-userpoolclient_analyticsconfiguration.go b/cloudformation/cognito/aws-cognito-userpoolclient_analyticsconfiguration.go index 8e3287b0be..f5ec6b275b 100644 --- a/cloudformation/cognito/aws-cognito-userpoolclient_analyticsconfiguration.go +++ b/cloudformation/cognito/aws-cognito-userpoolclient_analyticsconfiguration.go @@ -36,6 +36,9 @@ type UserPoolClient_AnalyticsConfiguration struct { // 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 diff --git a/cloudformation/cognito/aws-cognito-userpooldomain.go b/cloudformation/cognito/aws-cognito-userpooldomain.go index c1dcbb6001..6410ac813c 100644 --- a/cloudformation/cognito/aws-cognito-userpooldomain.go +++ b/cloudformation/cognito/aws-cognito-userpooldomain.go @@ -35,6 +35,9 @@ type UserPoolDomain struct { // 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 @@ -52,12 +55,14 @@ func (r UserPoolDomain) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -71,6 +76,7 @@ func (r *UserPoolDomain) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -94,5 +100,8 @@ func (r *UserPoolDomain) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/cognito/aws-cognito-userpooldomain_customdomainconfigtype.go b/cloudformation/cognito/aws-cognito-userpooldomain_customdomainconfigtype.go index 6d10df62e2..dfb46782b1 100644 --- a/cloudformation/cognito/aws-cognito-userpooldomain_customdomainconfigtype.go +++ b/cloudformation/cognito/aws-cognito-userpooldomain_customdomainconfigtype.go @@ -21,6 +21,9 @@ type UserPoolDomain_CustomDomainConfigType struct { // 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 diff --git a/cloudformation/cognito/aws-cognito-userpoolgroup.go b/cloudformation/cognito/aws-cognito-userpoolgroup.go index 9bafe725ac..bd47e3d45f 100644 --- a/cloudformation/cognito/aws-cognito-userpoolgroup.go +++ b/cloudformation/cognito/aws-cognito-userpoolgroup.go @@ -45,6 +45,9 @@ type UserPoolGroup struct { // 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 @@ -62,12 +65,14 @@ func (r UserPoolGroup) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -81,6 +86,7 @@ func (r *UserPoolGroup) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -104,5 +110,8 @@ func (r *UserPoolGroup) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/cognito/aws-cognito-userpoolidentityprovider.go b/cloudformation/cognito/aws-cognito-userpoolidentityprovider.go index 33d631cfe3..87234c0c4e 100644 --- a/cloudformation/cognito/aws-cognito-userpoolidentityprovider.go +++ b/cloudformation/cognito/aws-cognito-userpoolidentityprovider.go @@ -50,6 +50,9 @@ type UserPoolIdentityProvider struct { // 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 @@ -67,12 +70,14 @@ func (r UserPoolIdentityProvider) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -86,6 +91,7 @@ func (r *UserPoolIdentityProvider) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -109,5 +115,8 @@ func (r *UserPoolIdentityProvider) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/cognito/aws-cognito-userpoolresourceserver.go b/cloudformation/cognito/aws-cognito-userpoolresourceserver.go index 7cb1773380..6b9a72c427 100644 --- a/cloudformation/cognito/aws-cognito-userpoolresourceserver.go +++ b/cloudformation/cognito/aws-cognito-userpoolresourceserver.go @@ -40,6 +40,9 @@ type UserPoolResourceServer struct { // 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 @@ -57,12 +60,14 @@ func (r UserPoolResourceServer) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -76,6 +81,7 @@ func (r *UserPoolResourceServer) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -99,5 +105,8 @@ func (r *UserPoolResourceServer) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/cognito/aws-cognito-userpoolresourceserver_resourceserverscopetype.go b/cloudformation/cognito/aws-cognito-userpoolresourceserver_resourceserverscopetype.go index 4372a25df1..d7ff0b158d 100644 --- a/cloudformation/cognito/aws-cognito-userpoolresourceserver_resourceserverscopetype.go +++ b/cloudformation/cognito/aws-cognito-userpoolresourceserver_resourceserverscopetype.go @@ -26,6 +26,9 @@ type UserPoolResourceServer_ResourceServerScopeType struct { // 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 diff --git a/cloudformation/cognito/aws-cognito-userpoolriskconfigurationattachment.go b/cloudformation/cognito/aws-cognito-userpoolriskconfigurationattachment.go index a282761db4..6f83169a4d 100644 --- a/cloudformation/cognito/aws-cognito-userpoolriskconfigurationattachment.go +++ b/cloudformation/cognito/aws-cognito-userpoolriskconfigurationattachment.go @@ -45,6 +45,9 @@ type UserPoolRiskConfigurationAttachment struct { // 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 @@ -62,12 +65,14 @@ func (r UserPoolRiskConfigurationAttachment) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -81,6 +86,7 @@ func (r *UserPoolRiskConfigurationAttachment) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -104,5 +110,8 @@ func (r *UserPoolRiskConfigurationAttachment) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/cognito/aws-cognito-userpoolriskconfigurationattachment_accounttakeoveractionstype.go b/cloudformation/cognito/aws-cognito-userpoolriskconfigurationattachment_accounttakeoveractionstype.go index eef0b5dcf2..380fe64481 100644 --- a/cloudformation/cognito/aws-cognito-userpoolriskconfigurationattachment_accounttakeoveractionstype.go +++ b/cloudformation/cognito/aws-cognito-userpoolriskconfigurationattachment_accounttakeoveractionstype.go @@ -31,6 +31,9 @@ type UserPoolRiskConfigurationAttachment_AccountTakeoverActionsType struct { // 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 diff --git a/cloudformation/cognito/aws-cognito-userpoolriskconfigurationattachment_accounttakeoveractiontype.go b/cloudformation/cognito/aws-cognito-userpoolriskconfigurationattachment_accounttakeoveractiontype.go index ef36b7b67e..85020135b1 100644 --- a/cloudformation/cognito/aws-cognito-userpoolriskconfigurationattachment_accounttakeoveractiontype.go +++ b/cloudformation/cognito/aws-cognito-userpoolriskconfigurationattachment_accounttakeoveractiontype.go @@ -26,6 +26,9 @@ type UserPoolRiskConfigurationAttachment_AccountTakeoverActionType struct { // 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 diff --git a/cloudformation/cognito/aws-cognito-userpoolriskconfigurationattachment_accounttakeoverriskconfigurationtype.go b/cloudformation/cognito/aws-cognito-userpoolriskconfigurationattachment_accounttakeoverriskconfigurationtype.go index c1b7cea036..017a40c506 100644 --- a/cloudformation/cognito/aws-cognito-userpoolriskconfigurationattachment_accounttakeoverriskconfigurationtype.go +++ b/cloudformation/cognito/aws-cognito-userpoolriskconfigurationattachment_accounttakeoverriskconfigurationtype.go @@ -26,6 +26,9 @@ type UserPoolRiskConfigurationAttachment_AccountTakeoverRiskConfigurationType st // 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 diff --git a/cloudformation/cognito/aws-cognito-userpoolriskconfigurationattachment_compromisedcredentialsactionstype.go b/cloudformation/cognito/aws-cognito-userpoolriskconfigurationattachment_compromisedcredentialsactionstype.go index 98e8948de2..6b227d1d0f 100644 --- a/cloudformation/cognito/aws-cognito-userpoolriskconfigurationattachment_compromisedcredentialsactionstype.go +++ b/cloudformation/cognito/aws-cognito-userpoolriskconfigurationattachment_compromisedcredentialsactionstype.go @@ -21,6 +21,9 @@ type UserPoolRiskConfigurationAttachment_CompromisedCredentialsActionsType struc // 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 diff --git a/cloudformation/cognito/aws-cognito-userpoolriskconfigurationattachment_compromisedcredentialsriskconfigurationtype.go b/cloudformation/cognito/aws-cognito-userpoolriskconfigurationattachment_compromisedcredentialsriskconfigurationtype.go index 129a821511..2728704b0f 100644 --- a/cloudformation/cognito/aws-cognito-userpoolriskconfigurationattachment_compromisedcredentialsriskconfigurationtype.go +++ b/cloudformation/cognito/aws-cognito-userpoolriskconfigurationattachment_compromisedcredentialsriskconfigurationtype.go @@ -26,6 +26,9 @@ type UserPoolRiskConfigurationAttachment_CompromisedCredentialsRiskConfiguration // 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 diff --git a/cloudformation/cognito/aws-cognito-userpoolriskconfigurationattachment_notifyconfigurationtype.go b/cloudformation/cognito/aws-cognito-userpoolriskconfigurationattachment_notifyconfigurationtype.go index 0c5272ff39..f02a2ad8af 100644 --- a/cloudformation/cognito/aws-cognito-userpoolriskconfigurationattachment_notifyconfigurationtype.go +++ b/cloudformation/cognito/aws-cognito-userpoolriskconfigurationattachment_notifyconfigurationtype.go @@ -46,6 +46,9 @@ type UserPoolRiskConfigurationAttachment_NotifyConfigurationType struct { // 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 diff --git a/cloudformation/cognito/aws-cognito-userpoolriskconfigurationattachment_notifyemailtype.go b/cloudformation/cognito/aws-cognito-userpoolriskconfigurationattachment_notifyemailtype.go index 2dd9791f26..69156a7ee2 100644 --- a/cloudformation/cognito/aws-cognito-userpoolriskconfigurationattachment_notifyemailtype.go +++ b/cloudformation/cognito/aws-cognito-userpoolriskconfigurationattachment_notifyemailtype.go @@ -31,6 +31,9 @@ type UserPoolRiskConfigurationAttachment_NotifyEmailType struct { // 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 diff --git a/cloudformation/cognito/aws-cognito-userpoolriskconfigurationattachment_riskexceptionconfigurationtype.go b/cloudformation/cognito/aws-cognito-userpoolriskconfigurationattachment_riskexceptionconfigurationtype.go index 6d4e1af50f..b3ca808d90 100644 --- a/cloudformation/cognito/aws-cognito-userpoolriskconfigurationattachment_riskexceptionconfigurationtype.go +++ b/cloudformation/cognito/aws-cognito-userpoolriskconfigurationattachment_riskexceptionconfigurationtype.go @@ -26,6 +26,9 @@ type UserPoolRiskConfigurationAttachment_RiskExceptionConfigurationType struct { // 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 diff --git a/cloudformation/cognito/aws-cognito-userpooluicustomizationattachment.go b/cloudformation/cognito/aws-cognito-userpooluicustomizationattachment.go index 264c3383bc..f1161d9c4c 100644 --- a/cloudformation/cognito/aws-cognito-userpooluicustomizationattachment.go +++ b/cloudformation/cognito/aws-cognito-userpooluicustomizationattachment.go @@ -35,6 +35,9 @@ type UserPoolUICustomizationAttachment struct { // 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 @@ -52,12 +55,14 @@ func (r UserPoolUICustomizationAttachment) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -71,6 +76,7 @@ func (r *UserPoolUICustomizationAttachment) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -94,5 +100,8 @@ func (r *UserPoolUICustomizationAttachment) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/cognito/aws-cognito-userpooluser.go b/cloudformation/cognito/aws-cognito-userpooluser.go index a234e6e933..8e48a48229 100644 --- a/cloudformation/cognito/aws-cognito-userpooluser.go +++ b/cloudformation/cognito/aws-cognito-userpooluser.go @@ -60,6 +60,9 @@ type UserPoolUser struct { // 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 @@ -77,12 +80,14 @@ func (r UserPoolUser) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -96,6 +101,7 @@ func (r *UserPoolUser) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -119,5 +125,8 @@ func (r *UserPoolUser) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/cognito/aws-cognito-userpooluser_attributetype.go b/cloudformation/cognito/aws-cognito-userpooluser_attributetype.go index 82f0bfc665..8b2d332ba7 100644 --- a/cloudformation/cognito/aws-cognito-userpooluser_attributetype.go +++ b/cloudformation/cognito/aws-cognito-userpooluser_attributetype.go @@ -26,6 +26,9 @@ type UserPoolUser_AttributeType struct { // 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 diff --git a/cloudformation/cognito/aws-cognito-userpoolusertogroupattachment.go b/cloudformation/cognito/aws-cognito-userpoolusertogroupattachment.go index 934ce8edf7..bbf32f7531 100644 --- a/cloudformation/cognito/aws-cognito-userpoolusertogroupattachment.go +++ b/cloudformation/cognito/aws-cognito-userpoolusertogroupattachment.go @@ -35,6 +35,9 @@ type UserPoolUserToGroupAttachment struct { // 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 @@ -52,12 +55,14 @@ func (r UserPoolUserToGroupAttachment) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -71,6 +76,7 @@ func (r *UserPoolUserToGroupAttachment) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -94,5 +100,8 @@ func (r *UserPoolUserToGroupAttachment) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/config/aws-config-aggregationauthorization.go b/cloudformation/config/aws-config-aggregationauthorization.go index 360457fd11..b7eef286d6 100644 --- a/cloudformation/config/aws-config-aggregationauthorization.go +++ b/cloudformation/config/aws-config-aggregationauthorization.go @@ -30,6 +30,9 @@ type AggregationAuthorization struct { // 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 @@ -47,12 +50,14 @@ func (r AggregationAuthorization) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -66,6 +71,7 @@ func (r *AggregationAuthorization) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -89,5 +95,8 @@ func (r *AggregationAuthorization) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/config/aws-config-configrule.go b/cloudformation/config/aws-config-configrule.go index d655eceab7..2e667e4ac9 100644 --- a/cloudformation/config/aws-config-configrule.go +++ b/cloudformation/config/aws-config-configrule.go @@ -50,6 +50,9 @@ type ConfigRule struct { // 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 @@ -67,12 +70,14 @@ func (r ConfigRule) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -86,6 +91,7 @@ func (r *ConfigRule) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -109,5 +115,8 @@ func (r *ConfigRule) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/config/aws-config-configrule_scope.go b/cloudformation/config/aws-config-configrule_scope.go index ac019b674e..55704bd38c 100644 --- a/cloudformation/config/aws-config-configrule_scope.go +++ b/cloudformation/config/aws-config-configrule_scope.go @@ -36,6 +36,9 @@ type ConfigRule_Scope struct { // 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 diff --git a/cloudformation/config/aws-config-configrule_source.go b/cloudformation/config/aws-config-configrule_source.go index 040c0698e1..c928bbc7cf 100644 --- a/cloudformation/config/aws-config-configrule_source.go +++ b/cloudformation/config/aws-config-configrule_source.go @@ -31,6 +31,9 @@ type ConfigRule_Source struct { // 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 diff --git a/cloudformation/config/aws-config-configrule_sourcedetail.go b/cloudformation/config/aws-config-configrule_sourcedetail.go index 425cae0bfa..db988129f4 100644 --- a/cloudformation/config/aws-config-configrule_sourcedetail.go +++ b/cloudformation/config/aws-config-configrule_sourcedetail.go @@ -31,6 +31,9 @@ type ConfigRule_SourceDetail struct { // 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 diff --git a/cloudformation/config/aws-config-configurationaggregator.go b/cloudformation/config/aws-config-configurationaggregator.go index d8de268041..a5a63b4fd8 100644 --- a/cloudformation/config/aws-config-configurationaggregator.go +++ b/cloudformation/config/aws-config-configurationaggregator.go @@ -35,6 +35,9 @@ type ConfigurationAggregator struct { // 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 @@ -52,12 +55,14 @@ func (r ConfigurationAggregator) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -71,6 +76,7 @@ func (r *ConfigurationAggregator) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -94,5 +100,8 @@ func (r *ConfigurationAggregator) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/config/aws-config-configurationaggregator_accountaggregationsource.go b/cloudformation/config/aws-config-configurationaggregator_accountaggregationsource.go index f2412602ee..04d05bf333 100644 --- a/cloudformation/config/aws-config-configurationaggregator_accountaggregationsource.go +++ b/cloudformation/config/aws-config-configurationaggregator_accountaggregationsource.go @@ -31,6 +31,9 @@ type ConfigurationAggregator_AccountAggregationSource struct { // 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 diff --git a/cloudformation/config/aws-config-configurationaggregator_organizationaggregationsource.go b/cloudformation/config/aws-config-configurationaggregator_organizationaggregationsource.go index 8f04728782..cb4839d5f4 100644 --- a/cloudformation/config/aws-config-configurationaggregator_organizationaggregationsource.go +++ b/cloudformation/config/aws-config-configurationaggregator_organizationaggregationsource.go @@ -31,6 +31,9 @@ type ConfigurationAggregator_OrganizationAggregationSource struct { // 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 diff --git a/cloudformation/config/aws-config-configurationrecorder.go b/cloudformation/config/aws-config-configurationrecorder.go index d263266a73..733dfad27a 100644 --- a/cloudformation/config/aws-config-configurationrecorder.go +++ b/cloudformation/config/aws-config-configurationrecorder.go @@ -35,6 +35,9 @@ type ConfigurationRecorder struct { // 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 @@ -52,12 +55,14 @@ func (r ConfigurationRecorder) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -71,6 +76,7 @@ func (r *ConfigurationRecorder) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -94,5 +100,8 @@ func (r *ConfigurationRecorder) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/config/aws-config-configurationrecorder_recordinggroup.go b/cloudformation/config/aws-config-configurationrecorder_recordinggroup.go index 9521e2c8af..3fc237fee9 100644 --- a/cloudformation/config/aws-config-configurationrecorder_recordinggroup.go +++ b/cloudformation/config/aws-config-configurationrecorder_recordinggroup.go @@ -31,6 +31,9 @@ type ConfigurationRecorder_RecordingGroup struct { // 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 diff --git a/cloudformation/config/aws-config-deliverychannel.go b/cloudformation/config/aws-config-deliverychannel.go index 0d8c6c5ef0..147dafda5b 100644 --- a/cloudformation/config/aws-config-deliverychannel.go +++ b/cloudformation/config/aws-config-deliverychannel.go @@ -45,6 +45,9 @@ type DeliveryChannel struct { // 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 @@ -62,12 +65,14 @@ func (r DeliveryChannel) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -81,6 +86,7 @@ func (r *DeliveryChannel) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -104,5 +110,8 @@ func (r *DeliveryChannel) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/config/aws-config-deliverychannel_configsnapshotdeliveryproperties.go b/cloudformation/config/aws-config-deliverychannel_configsnapshotdeliveryproperties.go index 2fc2e7eb88..55f96dc39f 100644 --- a/cloudformation/config/aws-config-deliverychannel_configsnapshotdeliveryproperties.go +++ b/cloudformation/config/aws-config-deliverychannel_configsnapshotdeliveryproperties.go @@ -21,6 +21,9 @@ type DeliveryChannel_ConfigSnapshotDeliveryProperties struct { // 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 diff --git a/cloudformation/config/aws-config-organizationconfigrule.go b/cloudformation/config/aws-config-organizationconfigrule.go index 400510abad..8e63139ade 100644 --- a/cloudformation/config/aws-config-organizationconfigrule.go +++ b/cloudformation/config/aws-config-organizationconfigrule.go @@ -40,6 +40,9 @@ type OrganizationConfigRule struct { // 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 @@ -57,12 +60,14 @@ func (r OrganizationConfigRule) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -76,6 +81,7 @@ func (r *OrganizationConfigRule) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -99,5 +105,8 @@ func (r *OrganizationConfigRule) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/config/aws-config-organizationconfigrule_organizationcustomrulemetadata.go b/cloudformation/config/aws-config-organizationconfigrule_organizationcustomrulemetadata.go index 3cb75a0cd9..2445b868b3 100644 --- a/cloudformation/config/aws-config-organizationconfigrule_organizationcustomrulemetadata.go +++ b/cloudformation/config/aws-config-organizationconfigrule_organizationcustomrulemetadata.go @@ -61,6 +61,9 @@ type OrganizationConfigRule_OrganizationCustomRuleMetadata struct { // 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 diff --git a/cloudformation/config/aws-config-organizationconfigrule_organizationmanagedrulemetadata.go b/cloudformation/config/aws-config-organizationconfigrule_organizationmanagedrulemetadata.go index b17caa70a7..fb9e0ecbfb 100644 --- a/cloudformation/config/aws-config-organizationconfigrule_organizationmanagedrulemetadata.go +++ b/cloudformation/config/aws-config-organizationconfigrule_organizationmanagedrulemetadata.go @@ -56,6 +56,9 @@ type OrganizationConfigRule_OrganizationManagedRuleMetadata struct { // 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 diff --git a/cloudformation/config/aws-config-remediationconfiguration.go b/cloudformation/config/aws-config-remediationconfiguration.go index 7ef350b5af..a8786f4bdc 100644 --- a/cloudformation/config/aws-config-remediationconfiguration.go +++ b/cloudformation/config/aws-config-remediationconfiguration.go @@ -70,6 +70,9 @@ type RemediationConfiguration struct { // 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 @@ -87,12 +90,14 @@ func (r RemediationConfiguration) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -106,6 +111,7 @@ func (r *RemediationConfiguration) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -129,5 +135,8 @@ func (r *RemediationConfiguration) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/config/aws-config-remediationconfiguration_executioncontrols.go b/cloudformation/config/aws-config-remediationconfiguration_executioncontrols.go index be13b1e8c5..e6762d30b0 100644 --- a/cloudformation/config/aws-config-remediationconfiguration_executioncontrols.go +++ b/cloudformation/config/aws-config-remediationconfiguration_executioncontrols.go @@ -21,6 +21,9 @@ type RemediationConfiguration_ExecutionControls struct { // 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 diff --git a/cloudformation/config/aws-config-remediationconfiguration_remediationparametervalue.go b/cloudformation/config/aws-config-remediationconfiguration_remediationparametervalue.go index 18f67d40be..31a54a392f 100644 --- a/cloudformation/config/aws-config-remediationconfiguration_remediationparametervalue.go +++ b/cloudformation/config/aws-config-remediationconfiguration_remediationparametervalue.go @@ -26,6 +26,9 @@ type RemediationConfiguration_RemediationParameterValue struct { // 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 diff --git a/cloudformation/config/aws-config-remediationconfiguration_resourcevalue.go b/cloudformation/config/aws-config-remediationconfiguration_resourcevalue.go index 7f4e8e6b75..920fca1700 100644 --- a/cloudformation/config/aws-config-remediationconfiguration_resourcevalue.go +++ b/cloudformation/config/aws-config-remediationconfiguration_resourcevalue.go @@ -21,6 +21,9 @@ type RemediationConfiguration_ResourceValue struct { // 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 diff --git a/cloudformation/config/aws-config-remediationconfiguration_ssmcontrols.go b/cloudformation/config/aws-config-remediationconfiguration_ssmcontrols.go index c8ae0f5764..5cbc746b88 100644 --- a/cloudformation/config/aws-config-remediationconfiguration_ssmcontrols.go +++ b/cloudformation/config/aws-config-remediationconfiguration_ssmcontrols.go @@ -26,6 +26,9 @@ type RemediationConfiguration_SsmControls struct { // 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 diff --git a/cloudformation/config/aws-config-remediationconfiguration_staticvalue.go b/cloudformation/config/aws-config-remediationconfiguration_staticvalue.go index 2ab32cd053..95f4f2577e 100644 --- a/cloudformation/config/aws-config-remediationconfiguration_staticvalue.go +++ b/cloudformation/config/aws-config-remediationconfiguration_staticvalue.go @@ -21,6 +21,9 @@ type RemediationConfiguration_StaticValue struct { // 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 diff --git a/cloudformation/datapipeline/aws-datapipeline-pipeline.go b/cloudformation/datapipeline/aws-datapipeline-pipeline.go index 244829279e..85d171fd93 100644 --- a/cloudformation/datapipeline/aws-datapipeline-pipeline.go +++ b/cloudformation/datapipeline/aws-datapipeline-pipeline.go @@ -55,6 +55,9 @@ type Pipeline struct { // 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 @@ -72,12 +75,14 @@ func (r Pipeline) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -91,6 +96,7 @@ func (r *Pipeline) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -114,5 +120,8 @@ func (r *Pipeline) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/datapipeline/aws-datapipeline-pipeline_field.go b/cloudformation/datapipeline/aws-datapipeline-pipeline_field.go index 46ea084337..dece95cd1e 100644 --- a/cloudformation/datapipeline/aws-datapipeline-pipeline_field.go +++ b/cloudformation/datapipeline/aws-datapipeline-pipeline_field.go @@ -31,6 +31,9 @@ type Pipeline_Field struct { // 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 diff --git a/cloudformation/datapipeline/aws-datapipeline-pipeline_parameterattribute.go b/cloudformation/datapipeline/aws-datapipeline-pipeline_parameterattribute.go index e4c9d23f57..319d5ba89e 100644 --- a/cloudformation/datapipeline/aws-datapipeline-pipeline_parameterattribute.go +++ b/cloudformation/datapipeline/aws-datapipeline-pipeline_parameterattribute.go @@ -26,6 +26,9 @@ type Pipeline_ParameterAttribute struct { // 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 diff --git a/cloudformation/datapipeline/aws-datapipeline-pipeline_parameterobject.go b/cloudformation/datapipeline/aws-datapipeline-pipeline_parameterobject.go index c9b8aea0be..661e511759 100644 --- a/cloudformation/datapipeline/aws-datapipeline-pipeline_parameterobject.go +++ b/cloudformation/datapipeline/aws-datapipeline-pipeline_parameterobject.go @@ -26,6 +26,9 @@ type Pipeline_ParameterObject struct { // 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 diff --git a/cloudformation/datapipeline/aws-datapipeline-pipeline_parametervalue.go b/cloudformation/datapipeline/aws-datapipeline-pipeline_parametervalue.go index eb13390869..febacaa2e0 100644 --- a/cloudformation/datapipeline/aws-datapipeline-pipeline_parametervalue.go +++ b/cloudformation/datapipeline/aws-datapipeline-pipeline_parametervalue.go @@ -26,6 +26,9 @@ type Pipeline_ParameterValue struct { // 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 diff --git a/cloudformation/datapipeline/aws-datapipeline-pipeline_pipelineobject.go b/cloudformation/datapipeline/aws-datapipeline-pipeline_pipelineobject.go index 4914d12ad0..9f9f24dcb4 100644 --- a/cloudformation/datapipeline/aws-datapipeline-pipeline_pipelineobject.go +++ b/cloudformation/datapipeline/aws-datapipeline-pipeline_pipelineobject.go @@ -31,6 +31,9 @@ type Pipeline_PipelineObject struct { // 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 diff --git a/cloudformation/datapipeline/aws-datapipeline-pipeline_pipelinetag.go b/cloudformation/datapipeline/aws-datapipeline-pipeline_pipelinetag.go index 8bdca266ca..6af1cb934b 100644 --- a/cloudformation/datapipeline/aws-datapipeline-pipeline_pipelinetag.go +++ b/cloudformation/datapipeline/aws-datapipeline-pipeline_pipelinetag.go @@ -26,6 +26,9 @@ type Pipeline_PipelineTag struct { // 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 diff --git a/cloudformation/dax/aws-dax-cluster.go b/cloudformation/dax/aws-dax-cluster.go index 938bd831f8..759441363a 100644 --- a/cloudformation/dax/aws-dax-cluster.go +++ b/cloudformation/dax/aws-dax-cluster.go @@ -85,6 +85,9 @@ type Cluster struct { // 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 @@ -102,12 +105,14 @@ func (r Cluster) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -121,6 +126,7 @@ func (r *Cluster) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -144,5 +150,8 @@ func (r *Cluster) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/dax/aws-dax-cluster_ssespecification.go b/cloudformation/dax/aws-dax-cluster_ssespecification.go index cfcec3f184..72e58d9e7f 100644 --- a/cloudformation/dax/aws-dax-cluster_ssespecification.go +++ b/cloudformation/dax/aws-dax-cluster_ssespecification.go @@ -21,6 +21,9 @@ type Cluster_SSESpecification struct { // 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 diff --git a/cloudformation/dax/aws-dax-parametergroup.go b/cloudformation/dax/aws-dax-parametergroup.go index 43b999a735..598f277c7d 100644 --- a/cloudformation/dax/aws-dax-parametergroup.go +++ b/cloudformation/dax/aws-dax-parametergroup.go @@ -35,6 +35,9 @@ type ParameterGroup struct { // 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 @@ -52,12 +55,14 @@ func (r ParameterGroup) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -71,6 +76,7 @@ func (r *ParameterGroup) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -94,5 +100,8 @@ func (r *ParameterGroup) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/dax/aws-dax-subnetgroup.go b/cloudformation/dax/aws-dax-subnetgroup.go index 8ae6233377..24ef6733f5 100644 --- a/cloudformation/dax/aws-dax-subnetgroup.go +++ b/cloudformation/dax/aws-dax-subnetgroup.go @@ -35,6 +35,9 @@ type SubnetGroup struct { // 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 @@ -52,12 +55,14 @@ func (r SubnetGroup) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -71,6 +76,7 @@ func (r *SubnetGroup) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -94,5 +100,8 @@ func (r *SubnetGroup) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/directoryservice/aws-directoryservice-microsoftad.go b/cloudformation/directoryservice/aws-directoryservice-microsoftad.go index 82e04c93db..e6b7d60da1 100644 --- a/cloudformation/directoryservice/aws-directoryservice-microsoftad.go +++ b/cloudformation/directoryservice/aws-directoryservice-microsoftad.go @@ -55,6 +55,9 @@ type MicrosoftAD struct { // 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 @@ -72,12 +75,14 @@ func (r MicrosoftAD) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -91,6 +96,7 @@ func (r *MicrosoftAD) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -114,5 +120,8 @@ func (r *MicrosoftAD) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/directoryservice/aws-directoryservice-microsoftad_vpcsettings.go b/cloudformation/directoryservice/aws-directoryservice-microsoftad_vpcsettings.go index 5401e083ea..b72f599b6b 100644 --- a/cloudformation/directoryservice/aws-directoryservice-microsoftad_vpcsettings.go +++ b/cloudformation/directoryservice/aws-directoryservice-microsoftad_vpcsettings.go @@ -26,6 +26,9 @@ type MicrosoftAD_VpcSettings struct { // 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 diff --git a/cloudformation/directoryservice/aws-directoryservice-simplead.go b/cloudformation/directoryservice/aws-directoryservice-simplead.go index 7ae182b2d1..dfdf9602c2 100644 --- a/cloudformation/directoryservice/aws-directoryservice-simplead.go +++ b/cloudformation/directoryservice/aws-directoryservice-simplead.go @@ -60,6 +60,9 @@ type SimpleAD struct { // 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 @@ -77,12 +80,14 @@ func (r SimpleAD) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -96,6 +101,7 @@ func (r *SimpleAD) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -119,5 +125,8 @@ func (r *SimpleAD) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/directoryservice/aws-directoryservice-simplead_vpcsettings.go b/cloudformation/directoryservice/aws-directoryservice-simplead_vpcsettings.go index e5d275b54e..2f5c11c698 100644 --- a/cloudformation/directoryservice/aws-directoryservice-simplead_vpcsettings.go +++ b/cloudformation/directoryservice/aws-directoryservice-simplead_vpcsettings.go @@ -26,6 +26,9 @@ type SimpleAD_VpcSettings struct { // 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 diff --git a/cloudformation/dlm/aws-dlm-lifecyclepolicy.go b/cloudformation/dlm/aws-dlm-lifecyclepolicy.go index 35752da43c..8a0f18323f 100644 --- a/cloudformation/dlm/aws-dlm-lifecyclepolicy.go +++ b/cloudformation/dlm/aws-dlm-lifecyclepolicy.go @@ -40,6 +40,9 @@ type LifecyclePolicy struct { // 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 @@ -57,12 +60,14 @@ func (r LifecyclePolicy) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -76,6 +81,7 @@ func (r *LifecyclePolicy) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -99,5 +105,8 @@ func (r *LifecyclePolicy) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/dlm/aws-dlm-lifecyclepolicy_createrule.go b/cloudformation/dlm/aws-dlm-lifecyclepolicy_createrule.go index 5e1235b046..144e98f1ee 100644 --- a/cloudformation/dlm/aws-dlm-lifecyclepolicy_createrule.go +++ b/cloudformation/dlm/aws-dlm-lifecyclepolicy_createrule.go @@ -31,6 +31,9 @@ type LifecyclePolicy_CreateRule struct { // 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 diff --git a/cloudformation/dlm/aws-dlm-lifecyclepolicy_crossregioncopyretainrule.go b/cloudformation/dlm/aws-dlm-lifecyclepolicy_crossregioncopyretainrule.go new file mode 100644 index 0000000000..83e3eaaea8 --- /dev/null +++ b/cloudformation/dlm/aws-dlm-lifecyclepolicy_crossregioncopyretainrule.go @@ -0,0 +1,37 @@ +package dlm + +import ( + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// LifecyclePolicy_CrossRegionCopyRetainRule AWS CloudFormation Resource (AWS::DLM::LifecyclePolicy.CrossRegionCopyRetainRule) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-crossregioncopyretainrule.html +type LifecyclePolicy_CrossRegionCopyRetainRule struct { + + // Interval AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-crossregioncopyretainrule.html#cfn-dlm-lifecyclepolicy-crossregioncopyretainrule-interval + Interval int `json:"Interval,omitempty"` + + // IntervalUnit AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-crossregioncopyretainrule.html#cfn-dlm-lifecyclepolicy-crossregioncopyretainrule-intervalunit + IntervalUnit string `json:"IntervalUnit,omitempty"` + + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `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 *LifecyclePolicy_CrossRegionCopyRetainRule) AWSCloudFormationType() string { + return "AWS::DLM::LifecyclePolicy.CrossRegionCopyRetainRule" +} diff --git a/cloudformation/dlm/aws-dlm-lifecyclepolicy_crossregioncopyrule.go b/cloudformation/dlm/aws-dlm-lifecyclepolicy_crossregioncopyrule.go new file mode 100644 index 0000000000..d663e92017 --- /dev/null +++ b/cloudformation/dlm/aws-dlm-lifecyclepolicy_crossregioncopyrule.go @@ -0,0 +1,52 @@ +package dlm + +import ( + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// LifecyclePolicy_CrossRegionCopyRule AWS CloudFormation Resource (AWS::DLM::LifecyclePolicy.CrossRegionCopyRule) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-crossregioncopyrule.html +type LifecyclePolicy_CrossRegionCopyRule struct { + + // CmkArn AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-crossregioncopyrule.html#cfn-dlm-lifecyclepolicy-crossregioncopyrule-cmkarn + CmkArn string `json:"CmkArn,omitempty"` + + // CopyTags AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-crossregioncopyrule.html#cfn-dlm-lifecyclepolicy-crossregioncopyrule-copytags + CopyTags bool `json:"CopyTags,omitempty"` + + // Encrypted AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-crossregioncopyrule.html#cfn-dlm-lifecyclepolicy-crossregioncopyrule-encrypted + Encrypted bool `json:"Encrypted,omitempty"` + + // RetainRule AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-crossregioncopyrule.html#cfn-dlm-lifecyclepolicy-crossregioncopyrule-retainrule + RetainRule *LifecyclePolicy_CrossRegionCopyRetainRule `json:"RetainRule,omitempty"` + + // TargetRegion AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-crossregioncopyrule.html#cfn-dlm-lifecyclepolicy-crossregioncopyrule-targetregion + TargetRegion string `json:"TargetRegion,omitempty"` + + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `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 *LifecyclePolicy_CrossRegionCopyRule) AWSCloudFormationType() string { + return "AWS::DLM::LifecyclePolicy.CrossRegionCopyRule" +} diff --git a/cloudformation/dlm/aws-dlm-lifecyclepolicy_fastrestorerule.go b/cloudformation/dlm/aws-dlm-lifecyclepolicy_fastrestorerule.go index 202f4367ef..fbb5d6a0e1 100644 --- a/cloudformation/dlm/aws-dlm-lifecyclepolicy_fastrestorerule.go +++ b/cloudformation/dlm/aws-dlm-lifecyclepolicy_fastrestorerule.go @@ -14,9 +14,19 @@ type LifecyclePolicy_FastRestoreRule struct { AvailabilityZones []string `json:"AvailabilityZones,omitempty"` // Count AWS CloudFormation Property - // Required: true + // Required: false // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-fastrestorerule.html#cfn-dlm-lifecyclepolicy-fastrestorerule-count - Count int `json:"Count"` + Count int `json:"Count,omitempty"` + + // Interval AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-fastrestorerule.html#cfn-dlm-lifecyclepolicy-fastrestorerule-interval + Interval int `json:"Interval,omitempty"` + + // IntervalUnit AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-fastrestorerule.html#cfn-dlm-lifecyclepolicy-fastrestorerule-intervalunit + IntervalUnit string `json:"IntervalUnit,omitempty"` // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` @@ -26,6 +36,9 @@ type LifecyclePolicy_FastRestoreRule struct { // 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 diff --git a/cloudformation/dlm/aws-dlm-lifecyclepolicy_parameters.go b/cloudformation/dlm/aws-dlm-lifecyclepolicy_parameters.go index d06ddfc1c7..4d80e5689a 100644 --- a/cloudformation/dlm/aws-dlm-lifecyclepolicy_parameters.go +++ b/cloudformation/dlm/aws-dlm-lifecyclepolicy_parameters.go @@ -21,6 +21,9 @@ type LifecyclePolicy_Parameters struct { // 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 diff --git a/cloudformation/dlm/aws-dlm-lifecyclepolicy_policydetails.go b/cloudformation/dlm/aws-dlm-lifecyclepolicy_policydetails.go index 73080df33b..ac7b2ba387 100644 --- a/cloudformation/dlm/aws-dlm-lifecyclepolicy_policydetails.go +++ b/cloudformation/dlm/aws-dlm-lifecyclepolicy_policydetails.go @@ -20,17 +20,17 @@ type LifecyclePolicy_PolicyDetails struct { PolicyType string `json:"PolicyType,omitempty"` // ResourceTypes AWS CloudFormation Property - // Required: false + // Required: true // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-policydetails.html#cfn-dlm-lifecyclepolicy-policydetails-resourcetypes ResourceTypes []string `json:"ResourceTypes,omitempty"` // Schedules AWS CloudFormation Property - // Required: false + // Required: true // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-policydetails.html#cfn-dlm-lifecyclepolicy-policydetails-schedules Schedules []LifecyclePolicy_Schedule `json:"Schedules,omitempty"` // TargetTags AWS CloudFormation Property - // Required: false + // Required: true // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-policydetails.html#cfn-dlm-lifecyclepolicy-policydetails-targettags TargetTags []tags.Tag `json:"TargetTags,omitempty"` @@ -42,6 +42,9 @@ type LifecyclePolicy_PolicyDetails struct { // 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 diff --git a/cloudformation/dlm/aws-dlm-lifecyclepolicy_retainrule.go b/cloudformation/dlm/aws-dlm-lifecyclepolicy_retainrule.go index 0bcbe733a9..68de928e83 100644 --- a/cloudformation/dlm/aws-dlm-lifecyclepolicy_retainrule.go +++ b/cloudformation/dlm/aws-dlm-lifecyclepolicy_retainrule.go @@ -9,9 +9,19 @@ import ( type LifecyclePolicy_RetainRule struct { // Count AWS CloudFormation Property - // Required: true + // Required: false // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-retainrule.html#cfn-dlm-lifecyclepolicy-retainrule-count - Count int `json:"Count"` + Count int `json:"Count,omitempty"` + + // Interval AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-retainrule.html#cfn-dlm-lifecyclepolicy-retainrule-interval + Interval int `json:"Interval,omitempty"` + + // IntervalUnit AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-retainrule.html#cfn-dlm-lifecyclepolicy-retainrule-intervalunit + IntervalUnit string `json:"IntervalUnit,omitempty"` // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` @@ -21,6 +31,9 @@ type LifecyclePolicy_RetainRule struct { // 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 diff --git a/cloudformation/dlm/aws-dlm-lifecyclepolicy_schedule.go b/cloudformation/dlm/aws-dlm-lifecyclepolicy_schedule.go index 74010c1e4b..ffb45ecf68 100644 --- a/cloudformation/dlm/aws-dlm-lifecyclepolicy_schedule.go +++ b/cloudformation/dlm/aws-dlm-lifecyclepolicy_schedule.go @@ -19,6 +19,11 @@ type LifecyclePolicy_Schedule struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-schedule.html#cfn-dlm-lifecyclepolicy-schedule-createrule CreateRule *LifecyclePolicy_CreateRule `json:"CreateRule,omitempty"` + // CrossRegionCopyRules AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-schedule.html#cfn-dlm-lifecyclepolicy-schedule-crossregioncopyrules + CrossRegionCopyRules []LifecyclePolicy_CrossRegionCopyRule `json:"CrossRegionCopyRules,omitempty"` + // FastRestoreRule AWS CloudFormation Property // Required: false // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-schedule.html#cfn-dlm-lifecyclepolicy-schedule-fastrestorerule @@ -52,6 +57,9 @@ type LifecyclePolicy_Schedule struct { // 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 diff --git a/cloudformation/dms/aws-dms-certificate.go b/cloudformation/dms/aws-dms-certificate.go index e8094305d7..ed85d6dc58 100644 --- a/cloudformation/dms/aws-dms-certificate.go +++ b/cloudformation/dms/aws-dms-certificate.go @@ -35,6 +35,9 @@ type Certificate struct { // 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 @@ -52,12 +55,14 @@ func (r Certificate) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -71,6 +76,7 @@ func (r *Certificate) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -94,5 +100,8 @@ func (r *Certificate) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/dms/aws-dms-endpoint.go b/cloudformation/dms/aws-dms-endpoint.go index b7a1e27a3f..9e5ac80501 100644 --- a/cloudformation/dms/aws-dms-endpoint.go +++ b/cloudformation/dms/aws-dms-endpoint.go @@ -111,6 +111,9 @@ type Endpoint struct { // 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 @@ -128,12 +131,14 @@ func (r Endpoint) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -147,6 +152,7 @@ func (r *Endpoint) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -170,5 +176,8 @@ func (r *Endpoint) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/dms/aws-dms-endpoint_dynamodbsettings.go b/cloudformation/dms/aws-dms-endpoint_dynamodbsettings.go index 73a270e190..c8f46da471 100644 --- a/cloudformation/dms/aws-dms-endpoint_dynamodbsettings.go +++ b/cloudformation/dms/aws-dms-endpoint_dynamodbsettings.go @@ -21,6 +21,9 @@ type Endpoint_DynamoDbSettings struct { // 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 diff --git a/cloudformation/dms/aws-dms-endpoint_elasticsearchsettings.go b/cloudformation/dms/aws-dms-endpoint_elasticsearchsettings.go index bee2164ac1..bf9d229e11 100644 --- a/cloudformation/dms/aws-dms-endpoint_elasticsearchsettings.go +++ b/cloudformation/dms/aws-dms-endpoint_elasticsearchsettings.go @@ -36,6 +36,9 @@ type Endpoint_ElasticsearchSettings struct { // 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 diff --git a/cloudformation/dms/aws-dms-endpoint_kinesissettings.go b/cloudformation/dms/aws-dms-endpoint_kinesissettings.go index 2d60524fe7..12ec6f6373 100644 --- a/cloudformation/dms/aws-dms-endpoint_kinesissettings.go +++ b/cloudformation/dms/aws-dms-endpoint_kinesissettings.go @@ -31,6 +31,9 @@ type Endpoint_KinesisSettings struct { // 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 diff --git a/cloudformation/dms/aws-dms-endpoint_mongodbsettings.go b/cloudformation/dms/aws-dms-endpoint_mongodbsettings.go index 26b43563df..2b4e10e4d9 100644 --- a/cloudformation/dms/aws-dms-endpoint_mongodbsettings.go +++ b/cloudformation/dms/aws-dms-endpoint_mongodbsettings.go @@ -71,6 +71,9 @@ type Endpoint_MongoDbSettings struct { // 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 diff --git a/cloudformation/dms/aws-dms-endpoint_s3settings.go b/cloudformation/dms/aws-dms-endpoint_s3settings.go index 3942302014..23da87fb05 100644 --- a/cloudformation/dms/aws-dms-endpoint_s3settings.go +++ b/cloudformation/dms/aws-dms-endpoint_s3settings.go @@ -51,6 +51,9 @@ type Endpoint_S3Settings struct { // 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 diff --git a/cloudformation/dms/aws-dms-eventsubscription.go b/cloudformation/dms/aws-dms-eventsubscription.go index 5ec1669172..2b5bda4765 100644 --- a/cloudformation/dms/aws-dms-eventsubscription.go +++ b/cloudformation/dms/aws-dms-eventsubscription.go @@ -56,6 +56,9 @@ type EventSubscription struct { // 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 @@ -73,12 +76,14 @@ func (r EventSubscription) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -92,6 +97,7 @@ func (r *EventSubscription) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -115,5 +121,8 @@ func (r *EventSubscription) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/dms/aws-dms-replicationinstance.go b/cloudformation/dms/aws-dms-replicationinstance.go index 48dd639a95..cb71fd504c 100644 --- a/cloudformation/dms/aws-dms-replicationinstance.go +++ b/cloudformation/dms/aws-dms-replicationinstance.go @@ -91,6 +91,9 @@ type ReplicationInstance struct { // 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 @@ -108,12 +111,14 @@ func (r ReplicationInstance) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -127,6 +132,7 @@ func (r *ReplicationInstance) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -150,5 +156,8 @@ func (r *ReplicationInstance) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/dms/aws-dms-replicationsubnetgroup.go b/cloudformation/dms/aws-dms-replicationsubnetgroup.go index d9e61e766a..dca3e2c726 100644 --- a/cloudformation/dms/aws-dms-replicationsubnetgroup.go +++ b/cloudformation/dms/aws-dms-replicationsubnetgroup.go @@ -41,6 +41,9 @@ type ReplicationSubnetGroup struct { // 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 @@ -58,12 +61,14 @@ func (r ReplicationSubnetGroup) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -77,6 +82,7 @@ func (r *ReplicationSubnetGroup) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -100,5 +106,8 @@ func (r *ReplicationSubnetGroup) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/dms/aws-dms-replicationtask.go b/cloudformation/dms/aws-dms-replicationtask.go index 249f75a70d..0d95c3e752 100644 --- a/cloudformation/dms/aws-dms-replicationtask.go +++ b/cloudformation/dms/aws-dms-replicationtask.go @@ -76,6 +76,9 @@ type ReplicationTask struct { // 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 @@ -93,12 +96,14 @@ func (r ReplicationTask) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -112,6 +117,7 @@ func (r *ReplicationTask) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -135,5 +141,8 @@ func (r *ReplicationTask) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/docdb/aws-docdb-dbcluster.go b/cloudformation/docdb/aws-docdb-dbcluster.go index 14c5ae9297..9e41651a0c 100644 --- a/cloudformation/docdb/aws-docdb-dbcluster.go +++ b/cloudformation/docdb/aws-docdb-dbcluster.go @@ -106,6 +106,9 @@ type DBCluster struct { // 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 @@ -123,12 +126,14 @@ func (r DBCluster) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -142,6 +147,7 @@ func (r *DBCluster) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -165,5 +171,8 @@ func (r *DBCluster) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/docdb/aws-docdb-dbclusterparametergroup.go b/cloudformation/docdb/aws-docdb-dbclusterparametergroup.go index 807fe81196..ac7ab16e65 100644 --- a/cloudformation/docdb/aws-docdb-dbclusterparametergroup.go +++ b/cloudformation/docdb/aws-docdb-dbclusterparametergroup.go @@ -46,6 +46,9 @@ type DBClusterParameterGroup struct { // 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 @@ -63,12 +66,14 @@ func (r DBClusterParameterGroup) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -82,6 +87,7 @@ func (r *DBClusterParameterGroup) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -105,5 +111,8 @@ func (r *DBClusterParameterGroup) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/docdb/aws-docdb-dbinstance.go b/cloudformation/docdb/aws-docdb-dbinstance.go index 0a6fb247fa..16c0a88b20 100644 --- a/cloudformation/docdb/aws-docdb-dbinstance.go +++ b/cloudformation/docdb/aws-docdb-dbinstance.go @@ -56,6 +56,9 @@ type DBInstance struct { // 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 @@ -73,12 +76,14 @@ func (r DBInstance) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -92,6 +97,7 @@ func (r *DBInstance) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -115,5 +121,8 @@ func (r *DBInstance) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/docdb/aws-docdb-dbsubnetgroup.go b/cloudformation/docdb/aws-docdb-dbsubnetgroup.go index e0541a0be6..c8e25e1d56 100644 --- a/cloudformation/docdb/aws-docdb-dbsubnetgroup.go +++ b/cloudformation/docdb/aws-docdb-dbsubnetgroup.go @@ -41,6 +41,9 @@ type DBSubnetGroup struct { // 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 @@ -58,12 +61,14 @@ func (r DBSubnetGroup) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -77,6 +82,7 @@ func (r *DBSubnetGroup) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -100,5 +106,8 @@ func (r *DBSubnetGroup) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/dynamodb/aws-dynamodb-table.go b/cloudformation/dynamodb/aws-dynamodb-table.go index 16c7881a5b..b436bd97a5 100644 --- a/cloudformation/dynamodb/aws-dynamodb-table.go +++ b/cloudformation/dynamodb/aws-dynamodb-table.go @@ -81,6 +81,9 @@ type Table struct { // 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 @@ -98,12 +101,14 @@ func (r Table) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -117,6 +122,7 @@ func (r *Table) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -140,5 +146,8 @@ func (r *Table) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/dynamodb/aws-dynamodb-table_attributedefinition.go b/cloudformation/dynamodb/aws-dynamodb-table_attributedefinition.go index 6f0271ff42..3c1714b356 100644 --- a/cloudformation/dynamodb/aws-dynamodb-table_attributedefinition.go +++ b/cloudformation/dynamodb/aws-dynamodb-table_attributedefinition.go @@ -26,6 +26,9 @@ type Table_AttributeDefinition struct { // 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 diff --git a/cloudformation/dynamodb/aws-dynamodb-table_globalsecondaryindex.go b/cloudformation/dynamodb/aws-dynamodb-table_globalsecondaryindex.go index 098b780345..6ea735629b 100644 --- a/cloudformation/dynamodb/aws-dynamodb-table_globalsecondaryindex.go +++ b/cloudformation/dynamodb/aws-dynamodb-table_globalsecondaryindex.go @@ -36,6 +36,9 @@ type Table_GlobalSecondaryIndex struct { // 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 diff --git a/cloudformation/dynamodb/aws-dynamodb-table_keyschema.go b/cloudformation/dynamodb/aws-dynamodb-table_keyschema.go index 80f951f29b..44b3fd70ff 100644 --- a/cloudformation/dynamodb/aws-dynamodb-table_keyschema.go +++ b/cloudformation/dynamodb/aws-dynamodb-table_keyschema.go @@ -26,6 +26,9 @@ type Table_KeySchema struct { // 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 diff --git a/cloudformation/dynamodb/aws-dynamodb-table_localsecondaryindex.go b/cloudformation/dynamodb/aws-dynamodb-table_localsecondaryindex.go index d3cc1e0bab..bad304e54b 100644 --- a/cloudformation/dynamodb/aws-dynamodb-table_localsecondaryindex.go +++ b/cloudformation/dynamodb/aws-dynamodb-table_localsecondaryindex.go @@ -31,6 +31,9 @@ type Table_LocalSecondaryIndex struct { // 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 diff --git a/cloudformation/dynamodb/aws-dynamodb-table_pointintimerecoveryspecification.go b/cloudformation/dynamodb/aws-dynamodb-table_pointintimerecoveryspecification.go index 8c45a40654..6a1014c69c 100644 --- a/cloudformation/dynamodb/aws-dynamodb-table_pointintimerecoveryspecification.go +++ b/cloudformation/dynamodb/aws-dynamodb-table_pointintimerecoveryspecification.go @@ -21,6 +21,9 @@ type Table_PointInTimeRecoverySpecification struct { // 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 diff --git a/cloudformation/dynamodb/aws-dynamodb-table_projection.go b/cloudformation/dynamodb/aws-dynamodb-table_projection.go index aac11435a4..463ff5f7da 100644 --- a/cloudformation/dynamodb/aws-dynamodb-table_projection.go +++ b/cloudformation/dynamodb/aws-dynamodb-table_projection.go @@ -26,6 +26,9 @@ type Table_Projection struct { // 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 diff --git a/cloudformation/dynamodb/aws-dynamodb-table_provisionedthroughput.go b/cloudformation/dynamodb/aws-dynamodb-table_provisionedthroughput.go index 813825a0b0..9e93c0dac5 100644 --- a/cloudformation/dynamodb/aws-dynamodb-table_provisionedthroughput.go +++ b/cloudformation/dynamodb/aws-dynamodb-table_provisionedthroughput.go @@ -26,6 +26,9 @@ type Table_ProvisionedThroughput struct { // 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 diff --git a/cloudformation/dynamodb/aws-dynamodb-table_ssespecification.go b/cloudformation/dynamodb/aws-dynamodb-table_ssespecification.go index 7fb09c93df..a4eab58e5c 100644 --- a/cloudformation/dynamodb/aws-dynamodb-table_ssespecification.go +++ b/cloudformation/dynamodb/aws-dynamodb-table_ssespecification.go @@ -31,6 +31,9 @@ type Table_SSESpecification struct { // 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 diff --git a/cloudformation/dynamodb/aws-dynamodb-table_streamspecification.go b/cloudformation/dynamodb/aws-dynamodb-table_streamspecification.go index afd2e0b9c0..a04982c0f1 100644 --- a/cloudformation/dynamodb/aws-dynamodb-table_streamspecification.go +++ b/cloudformation/dynamodb/aws-dynamodb-table_streamspecification.go @@ -21,6 +21,9 @@ type Table_StreamSpecification struct { // 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 diff --git a/cloudformation/dynamodb/aws-dynamodb-table_timetolivespecification.go b/cloudformation/dynamodb/aws-dynamodb-table_timetolivespecification.go index 74bbce429b..4fc40bcbe8 100644 --- a/cloudformation/dynamodb/aws-dynamodb-table_timetolivespecification.go +++ b/cloudformation/dynamodb/aws-dynamodb-table_timetolivespecification.go @@ -26,6 +26,9 @@ type Table_TimeToLiveSpecification struct { // 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 diff --git a/cloudformation/ec2/aws-ec2-capacityreservation.go b/cloudformation/ec2/aws-ec2-capacityreservation.go index b950de5828..44c3020f4c 100644 --- a/cloudformation/ec2/aws-ec2-capacityreservation.go +++ b/cloudformation/ec2/aws-ec2-capacityreservation.go @@ -75,6 +75,9 @@ type CapacityReservation struct { // 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 @@ -92,12 +95,14 @@ func (r CapacityReservation) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -111,6 +116,7 @@ func (r *CapacityReservation) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -134,5 +140,8 @@ func (r *CapacityReservation) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/ec2/aws-ec2-capacityreservation_tagspecification.go b/cloudformation/ec2/aws-ec2-capacityreservation_tagspecification.go index edfcc20889..c89229d4d8 100644 --- a/cloudformation/ec2/aws-ec2-capacityreservation_tagspecification.go +++ b/cloudformation/ec2/aws-ec2-capacityreservation_tagspecification.go @@ -27,6 +27,9 @@ type CapacityReservation_TagSpecification struct { // 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 diff --git a/cloudformation/ec2/aws-ec2-clientvpnauthorizationrule.go b/cloudformation/ec2/aws-ec2-clientvpnauthorizationrule.go index e6c50e5891..ef9d59a979 100644 --- a/cloudformation/ec2/aws-ec2-clientvpnauthorizationrule.go +++ b/cloudformation/ec2/aws-ec2-clientvpnauthorizationrule.go @@ -45,6 +45,9 @@ type ClientVpnAuthorizationRule struct { // 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 @@ -62,12 +65,14 @@ func (r ClientVpnAuthorizationRule) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -81,6 +86,7 @@ func (r *ClientVpnAuthorizationRule) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -104,5 +110,8 @@ func (r *ClientVpnAuthorizationRule) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/ec2/aws-ec2-clientvpnendpoint.go b/cloudformation/ec2/aws-ec2-clientvpnendpoint.go index 7caa4391bb..620f734b45 100644 --- a/cloudformation/ec2/aws-ec2-clientvpnendpoint.go +++ b/cloudformation/ec2/aws-ec2-clientvpnendpoint.go @@ -65,6 +65,9 @@ type ClientVpnEndpoint struct { // 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 @@ -82,12 +85,14 @@ func (r ClientVpnEndpoint) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -101,6 +106,7 @@ func (r *ClientVpnEndpoint) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -124,5 +130,8 @@ func (r *ClientVpnEndpoint) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/ec2/aws-ec2-clientvpnendpoint_certificateauthenticationrequest.go b/cloudformation/ec2/aws-ec2-clientvpnendpoint_certificateauthenticationrequest.go index 14090c39d8..19aaa6c1e9 100644 --- a/cloudformation/ec2/aws-ec2-clientvpnendpoint_certificateauthenticationrequest.go +++ b/cloudformation/ec2/aws-ec2-clientvpnendpoint_certificateauthenticationrequest.go @@ -21,6 +21,9 @@ type ClientVpnEndpoint_CertificateAuthenticationRequest struct { // 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 diff --git a/cloudformation/ec2/aws-ec2-clientvpnendpoint_clientauthenticationrequest.go b/cloudformation/ec2/aws-ec2-clientvpnendpoint_clientauthenticationrequest.go index 3ebd3856b8..78e8e3ed40 100644 --- a/cloudformation/ec2/aws-ec2-clientvpnendpoint_clientauthenticationrequest.go +++ b/cloudformation/ec2/aws-ec2-clientvpnendpoint_clientauthenticationrequest.go @@ -31,6 +31,9 @@ type ClientVpnEndpoint_ClientAuthenticationRequest struct { // 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 diff --git a/cloudformation/ec2/aws-ec2-clientvpnendpoint_connectionlogoptions.go b/cloudformation/ec2/aws-ec2-clientvpnendpoint_connectionlogoptions.go index 4a0bc7d8bc..69c801f65e 100644 --- a/cloudformation/ec2/aws-ec2-clientvpnendpoint_connectionlogoptions.go +++ b/cloudformation/ec2/aws-ec2-clientvpnendpoint_connectionlogoptions.go @@ -31,6 +31,9 @@ type ClientVpnEndpoint_ConnectionLogOptions struct { // 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 diff --git a/cloudformation/ec2/aws-ec2-clientvpnendpoint_directoryserviceauthenticationrequest.go b/cloudformation/ec2/aws-ec2-clientvpnendpoint_directoryserviceauthenticationrequest.go index 2a4d74aedc..32ee79aa98 100644 --- a/cloudformation/ec2/aws-ec2-clientvpnendpoint_directoryserviceauthenticationrequest.go +++ b/cloudformation/ec2/aws-ec2-clientvpnendpoint_directoryserviceauthenticationrequest.go @@ -21,6 +21,9 @@ type ClientVpnEndpoint_DirectoryServiceAuthenticationRequest struct { // 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 diff --git a/cloudformation/ec2/aws-ec2-clientvpnendpoint_tagspecification.go b/cloudformation/ec2/aws-ec2-clientvpnendpoint_tagspecification.go index 4eae4f32a7..75d982a153 100644 --- a/cloudformation/ec2/aws-ec2-clientvpnendpoint_tagspecification.go +++ b/cloudformation/ec2/aws-ec2-clientvpnendpoint_tagspecification.go @@ -27,6 +27,9 @@ type ClientVpnEndpoint_TagSpecification struct { // 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 diff --git a/cloudformation/ec2/aws-ec2-clientvpnroute.go b/cloudformation/ec2/aws-ec2-clientvpnroute.go index cf507636c7..1daa610310 100644 --- a/cloudformation/ec2/aws-ec2-clientvpnroute.go +++ b/cloudformation/ec2/aws-ec2-clientvpnroute.go @@ -40,6 +40,9 @@ type ClientVpnRoute struct { // 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 @@ -57,12 +60,14 @@ func (r ClientVpnRoute) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -76,6 +81,7 @@ func (r *ClientVpnRoute) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -99,5 +105,8 @@ func (r *ClientVpnRoute) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/ec2/aws-ec2-clientvpntargetnetworkassociation.go b/cloudformation/ec2/aws-ec2-clientvpntargetnetworkassociation.go index 5debdfea21..71164e673d 100644 --- a/cloudformation/ec2/aws-ec2-clientvpntargetnetworkassociation.go +++ b/cloudformation/ec2/aws-ec2-clientvpntargetnetworkassociation.go @@ -30,6 +30,9 @@ type ClientVpnTargetNetworkAssociation struct { // 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 @@ -47,12 +50,14 @@ func (r ClientVpnTargetNetworkAssociation) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -66,6 +71,7 @@ func (r *ClientVpnTargetNetworkAssociation) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -89,5 +95,8 @@ func (r *ClientVpnTargetNetworkAssociation) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/ec2/aws-ec2-customergateway.go b/cloudformation/ec2/aws-ec2-customergateway.go index ec2bba5170..96015e41f7 100644 --- a/cloudformation/ec2/aws-ec2-customergateway.go +++ b/cloudformation/ec2/aws-ec2-customergateway.go @@ -41,6 +41,9 @@ type CustomerGateway struct { // 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 @@ -58,12 +61,14 @@ func (r CustomerGateway) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -77,6 +82,7 @@ func (r *CustomerGateway) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -100,5 +106,8 @@ func (r *CustomerGateway) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/ec2/aws-ec2-dhcpoptions.go b/cloudformation/ec2/aws-ec2-dhcpoptions.go index 7b607d207f..744d9154d9 100644 --- a/cloudformation/ec2/aws-ec2-dhcpoptions.go +++ b/cloudformation/ec2/aws-ec2-dhcpoptions.go @@ -51,6 +51,9 @@ type DHCPOptions struct { // 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 @@ -68,12 +71,14 @@ func (r DHCPOptions) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -87,6 +92,7 @@ func (r *DHCPOptions) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -110,5 +116,8 @@ func (r *DHCPOptions) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/ec2/aws-ec2-ec2fleet.go b/cloudformation/ec2/aws-ec2-ec2fleet.go index 8f92ed73b3..91d6e5bb1a 100644 --- a/cloudformation/ec2/aws-ec2-ec2fleet.go +++ b/cloudformation/ec2/aws-ec2-ec2fleet.go @@ -75,6 +75,9 @@ type EC2Fleet struct { // 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 @@ -92,12 +95,14 @@ func (r EC2Fleet) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -111,6 +116,7 @@ func (r *EC2Fleet) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -134,5 +140,8 @@ func (r *EC2Fleet) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/ec2/aws-ec2-ec2fleet_fleetlaunchtemplateconfigrequest.go b/cloudformation/ec2/aws-ec2-ec2fleet_fleetlaunchtemplateconfigrequest.go index 78eb5158be..0e8e924161 100644 --- a/cloudformation/ec2/aws-ec2-ec2fleet_fleetlaunchtemplateconfigrequest.go +++ b/cloudformation/ec2/aws-ec2-ec2fleet_fleetlaunchtemplateconfigrequest.go @@ -26,6 +26,9 @@ type EC2Fleet_FleetLaunchTemplateConfigRequest struct { // 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 diff --git a/cloudformation/ec2/aws-ec2-ec2fleet_fleetlaunchtemplateoverridesrequest.go b/cloudformation/ec2/aws-ec2-ec2fleet_fleetlaunchtemplateoverridesrequest.go index 3482e5cdbd..aaeeea6d01 100644 --- a/cloudformation/ec2/aws-ec2-ec2fleet_fleetlaunchtemplateoverridesrequest.go +++ b/cloudformation/ec2/aws-ec2-ec2fleet_fleetlaunchtemplateoverridesrequest.go @@ -46,6 +46,9 @@ type EC2Fleet_FleetLaunchTemplateOverridesRequest struct { // 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 diff --git a/cloudformation/ec2/aws-ec2-ec2fleet_fleetlaunchtemplatespecificationrequest.go b/cloudformation/ec2/aws-ec2-ec2fleet_fleetlaunchtemplatespecificationrequest.go index 51ce5a0f9f..b6bed3d93a 100644 --- a/cloudformation/ec2/aws-ec2-ec2fleet_fleetlaunchtemplatespecificationrequest.go +++ b/cloudformation/ec2/aws-ec2-ec2fleet_fleetlaunchtemplatespecificationrequest.go @@ -31,6 +31,9 @@ type EC2Fleet_FleetLaunchTemplateSpecificationRequest struct { // 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 diff --git a/cloudformation/ec2/aws-ec2-ec2fleet_ondemandoptionsrequest.go b/cloudformation/ec2/aws-ec2-ec2fleet_ondemandoptionsrequest.go index d95f5e6f96..aeb027b624 100644 --- a/cloudformation/ec2/aws-ec2-ec2fleet_ondemandoptionsrequest.go +++ b/cloudformation/ec2/aws-ec2-ec2fleet_ondemandoptionsrequest.go @@ -21,6 +21,9 @@ type EC2Fleet_OnDemandOptionsRequest struct { // 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 diff --git a/cloudformation/ec2/aws-ec2-ec2fleet_spotoptionsrequest.go b/cloudformation/ec2/aws-ec2-ec2fleet_spotoptionsrequest.go index 84f63d67e9..45badddf32 100644 --- a/cloudformation/ec2/aws-ec2-ec2fleet_spotoptionsrequest.go +++ b/cloudformation/ec2/aws-ec2-ec2fleet_spotoptionsrequest.go @@ -31,6 +31,9 @@ type EC2Fleet_SpotOptionsRequest struct { // 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 diff --git a/cloudformation/ec2/aws-ec2-ec2fleet_tagrequest.go b/cloudformation/ec2/aws-ec2-ec2fleet_tagrequest.go index d5e8deee43..a854236d7e 100644 --- a/cloudformation/ec2/aws-ec2-ec2fleet_tagrequest.go +++ b/cloudformation/ec2/aws-ec2-ec2fleet_tagrequest.go @@ -26,6 +26,9 @@ type EC2Fleet_TagRequest struct { // 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 diff --git a/cloudformation/ec2/aws-ec2-ec2fleet_tagspecification.go b/cloudformation/ec2/aws-ec2-ec2fleet_tagspecification.go index 9ff6d0816c..7441eb15d7 100644 --- a/cloudformation/ec2/aws-ec2-ec2fleet_tagspecification.go +++ b/cloudformation/ec2/aws-ec2-ec2fleet_tagspecification.go @@ -26,6 +26,9 @@ type EC2Fleet_TagSpecification struct { // 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 diff --git a/cloudformation/ec2/aws-ec2-ec2fleet_targetcapacityspecificationrequest.go b/cloudformation/ec2/aws-ec2-ec2fleet_targetcapacityspecificationrequest.go index 738c643043..3328a3bd2c 100644 --- a/cloudformation/ec2/aws-ec2-ec2fleet_targetcapacityspecificationrequest.go +++ b/cloudformation/ec2/aws-ec2-ec2fleet_targetcapacityspecificationrequest.go @@ -36,6 +36,9 @@ type EC2Fleet_TargetCapacitySpecificationRequest struct { // 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 diff --git a/cloudformation/ec2/aws-ec2-egressonlyinternetgateway.go b/cloudformation/ec2/aws-ec2-egressonlyinternetgateway.go index 7f000b8437..7e97ad5b93 100644 --- a/cloudformation/ec2/aws-ec2-egressonlyinternetgateway.go +++ b/cloudformation/ec2/aws-ec2-egressonlyinternetgateway.go @@ -25,6 +25,9 @@ type EgressOnlyInternetGateway struct { // 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 @@ -42,12 +45,14 @@ func (r EgressOnlyInternetGateway) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -61,6 +66,7 @@ func (r *EgressOnlyInternetGateway) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -84,5 +90,8 @@ func (r *EgressOnlyInternetGateway) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/ec2/aws-ec2-eip.go b/cloudformation/ec2/aws-ec2-eip.go index 78bb71569c..f1680e15f1 100644 --- a/cloudformation/ec2/aws-ec2-eip.go +++ b/cloudformation/ec2/aws-ec2-eip.go @@ -41,6 +41,9 @@ type EIP struct { // 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 @@ -58,12 +61,14 @@ func (r EIP) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -77,6 +82,7 @@ func (r *EIP) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -100,5 +106,8 @@ func (r *EIP) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/ec2/aws-ec2-eipassociation.go b/cloudformation/ec2/aws-ec2-eipassociation.go index bbd6ee8d3b..a93fce52f9 100644 --- a/cloudformation/ec2/aws-ec2-eipassociation.go +++ b/cloudformation/ec2/aws-ec2-eipassociation.go @@ -45,6 +45,9 @@ type EIPAssociation struct { // 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 @@ -62,12 +65,14 @@ func (r EIPAssociation) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -81,6 +86,7 @@ func (r *EIPAssociation) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -104,5 +110,8 @@ func (r *EIPAssociation) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/ec2/aws-ec2-flowlog.go b/cloudformation/ec2/aws-ec2-flowlog.go index 9d5371e38f..61974acb29 100644 --- a/cloudformation/ec2/aws-ec2-flowlog.go +++ b/cloudformation/ec2/aws-ec2-flowlog.go @@ -55,6 +55,9 @@ type FlowLog struct { // 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 @@ -72,12 +75,14 @@ func (r FlowLog) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -91,6 +96,7 @@ func (r *FlowLog) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -114,5 +120,8 @@ func (r *FlowLog) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/ec2/aws-ec2-gatewayroutetableassociation.go b/cloudformation/ec2/aws-ec2-gatewayroutetableassociation.go new file mode 100644 index 0000000000..29c09cf7ce --- /dev/null +++ b/cloudformation/ec2/aws-ec2-gatewayroutetableassociation.go @@ -0,0 +1,102 @@ +package ec2 + +import ( + "bytes" + "encoding/json" + "fmt" + + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// GatewayRouteTableAssociation AWS CloudFormation Resource (AWS::EC2::GatewayRouteTableAssociation) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-gatewayroutetableassociation.html +type GatewayRouteTableAssociation struct { + + // GatewayId AWS CloudFormation Property + // Required: true + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-gatewayroutetableassociation.html#cfn-ec2-gatewayroutetableassociation-gatewayid + GatewayId string `json:"GatewayId,omitempty"` + + // RouteTableId AWS CloudFormation Property + // Required: true + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-gatewayroutetableassociation.html#cfn-ec2-gatewayroutetableassociation-routetableid + RouteTableId string `json:"RouteTableId,omitempty"` + + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `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 *GatewayRouteTableAssociation) AWSCloudFormationType() string { + return "AWS::EC2::GatewayRouteTableAssociation" +} + +// MarshalJSON is a custom JSON marshalling hook that embeds this object into +// an AWS CloudFormation JSON resource's 'Properties' field and adds a 'Type'. +func (r GatewayRouteTableAssociation) MarshalJSON() ([]byte, error) { + type Properties GatewayRouteTableAssociation + return json.Marshal(&struct { + Type string + Properties Properties + DependsOn []string `json:"DependsOn,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` + }{ + Type: r.AWSCloudFormationType(), + Properties: (Properties)(r), + DependsOn: r.AWSCloudFormationDependsOn, + Metadata: r.AWSCloudFormationMetadata, + DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, + }) +} + +// UnmarshalJSON is a custom JSON unmarshalling hook that strips the outer +// AWS CloudFormation resource object, and just keeps the 'Properties' field. +func (r *GatewayRouteTableAssociation) UnmarshalJSON(b []byte) error { + type Properties GatewayRouteTableAssociation + res := &struct { + Type string + Properties *Properties + DependsOn []string + Metadata map[string]interface{} + DeletionPolicy string + Condition string + }{} + + dec := json.NewDecoder(bytes.NewReader(b)) + dec.DisallowUnknownFields() // Force error if unknown field is found + + if err := dec.Decode(&res); err != nil { + fmt.Printf("ERROR: %s\n", err) + return err + } + + // If the resource has no Properties set, it could be nil + if res.Properties != nil { + *r = GatewayRouteTableAssociation(*res.Properties) + } + if res.DependsOn != nil { + r.AWSCloudFormationDependsOn = res.DependsOn + } + if res.Metadata != nil { + r.AWSCloudFormationMetadata = res.Metadata + } + if res.DeletionPolicy != "" { + r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) + } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } + return nil +} diff --git a/cloudformation/ec2/aws-ec2-host.go b/cloudformation/ec2/aws-ec2-host.go index 387312f602..2d6dbb611d 100644 --- a/cloudformation/ec2/aws-ec2-host.go +++ b/cloudformation/ec2/aws-ec2-host.go @@ -40,6 +40,9 @@ type Host struct { // 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 @@ -57,12 +60,14 @@ func (r Host) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -76,6 +81,7 @@ func (r *Host) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -99,5 +105,8 @@ func (r *Host) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/ec2/aws-ec2-instance.go b/cloudformation/ec2/aws-ec2-instance.go index 3fa252de0c..c76c7cc6f3 100644 --- a/cloudformation/ec2/aws-ec2-instance.go +++ b/cloudformation/ec2/aws-ec2-instance.go @@ -63,11 +63,21 @@ type Instance struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance.html#cfn-ec2-instance-elasticinferenceaccelerators ElasticInferenceAccelerators []Instance_ElasticInferenceAccelerator `json:"ElasticInferenceAccelerators,omitempty"` + // HibernationOptions AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance.html#cfn-ec2-instance-hibernationoptions + HibernationOptions *Instance_HibernationOptions `json:"HibernationOptions,omitempty"` + // HostId AWS CloudFormation Property // Required: false // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance.html#cfn-ec2-instance-hostid HostId string `json:"HostId,omitempty"` + // HostResourceGroupArn AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance.html#cfn-ec2-instance-hostresourcegrouparn + HostResourceGroupArn string `json:"HostResourceGroupArn,omitempty"` + // IamInstanceProfile AWS CloudFormation Property // Required: false // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance.html#cfn-ec2-instance-iaminstanceprofile @@ -199,6 +209,9 @@ type Instance struct { // 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 @@ -216,6 +229,7 @@ func (r Instance) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` CreationPolicy *policies.CreationPolicy `json:"CreationPolicy,omitempty"` }{ @@ -224,6 +238,7 @@ func (r Instance) MarshalJSON() ([]byte, error) { DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, CreationPolicy: r.AWSCloudFormationCreationPolicy, }) @@ -239,6 +254,7 @@ func (r *Instance) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -262,5 +278,8 @@ func (r *Instance) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/ec2/aws-ec2-instance_associationparameter.go b/cloudformation/ec2/aws-ec2-instance_associationparameter.go index df9abbc88d..6bfbff41e6 100644 --- a/cloudformation/ec2/aws-ec2-instance_associationparameter.go +++ b/cloudformation/ec2/aws-ec2-instance_associationparameter.go @@ -26,6 +26,9 @@ type Instance_AssociationParameter struct { // 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 diff --git a/cloudformation/ec2/aws-ec2-instance_blockdevicemapping.go b/cloudformation/ec2/aws-ec2-instance_blockdevicemapping.go index 6ff61ecc6d..68efd1bdad 100644 --- a/cloudformation/ec2/aws-ec2-instance_blockdevicemapping.go +++ b/cloudformation/ec2/aws-ec2-instance_blockdevicemapping.go @@ -36,6 +36,9 @@ type Instance_BlockDeviceMapping struct { // 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 diff --git a/cloudformation/ec2/aws-ec2-instance_cpuoptions.go b/cloudformation/ec2/aws-ec2-instance_cpuoptions.go index f3efd00376..74b525dc9e 100644 --- a/cloudformation/ec2/aws-ec2-instance_cpuoptions.go +++ b/cloudformation/ec2/aws-ec2-instance_cpuoptions.go @@ -26,6 +26,9 @@ type Instance_CpuOptions struct { // 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 diff --git a/cloudformation/ec2/aws-ec2-instance_creditspecification.go b/cloudformation/ec2/aws-ec2-instance_creditspecification.go index 3a50e0802a..af212a3da6 100644 --- a/cloudformation/ec2/aws-ec2-instance_creditspecification.go +++ b/cloudformation/ec2/aws-ec2-instance_creditspecification.go @@ -21,6 +21,9 @@ type Instance_CreditSpecification struct { // 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 diff --git a/cloudformation/ec2/aws-ec2-instance_ebs.go b/cloudformation/ec2/aws-ec2-instance_ebs.go index c967708711..993612fd33 100644 --- a/cloudformation/ec2/aws-ec2-instance_ebs.go +++ b/cloudformation/ec2/aws-ec2-instance_ebs.go @@ -51,6 +51,9 @@ type Instance_Ebs struct { // 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 diff --git a/cloudformation/ec2/aws-ec2-instance_elasticgpuspecification.go b/cloudformation/ec2/aws-ec2-instance_elasticgpuspecification.go index 0e320a7f98..4e6fcedeb0 100644 --- a/cloudformation/ec2/aws-ec2-instance_elasticgpuspecification.go +++ b/cloudformation/ec2/aws-ec2-instance_elasticgpuspecification.go @@ -21,6 +21,9 @@ type Instance_ElasticGpuSpecification struct { // 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 diff --git a/cloudformation/ec2/aws-ec2-instance_elasticinferenceaccelerator.go b/cloudformation/ec2/aws-ec2-instance_elasticinferenceaccelerator.go index 3b482ae42d..11ed2437d6 100644 --- a/cloudformation/ec2/aws-ec2-instance_elasticinferenceaccelerator.go +++ b/cloudformation/ec2/aws-ec2-instance_elasticinferenceaccelerator.go @@ -26,6 +26,9 @@ type Instance_ElasticInferenceAccelerator struct { // 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 diff --git a/cloudformation/ec2/aws-ec2-instance_hibernationoptions.go b/cloudformation/ec2/aws-ec2-instance_hibernationoptions.go new file mode 100644 index 0000000000..c579aa3a7f --- /dev/null +++ b/cloudformation/ec2/aws-ec2-instance_hibernationoptions.go @@ -0,0 +1,32 @@ +package ec2 + +import ( + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// Instance_HibernationOptions AWS CloudFormation Resource (AWS::EC2::Instance.HibernationOptions) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance-hibernationoptions.html +type Instance_HibernationOptions struct { + + // Configured AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance-hibernationoptions.html#cfn-ec2-instance-hibernationoptions-configured + Configured bool `json:"Configured,omitempty"` + + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `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 *Instance_HibernationOptions) AWSCloudFormationType() string { + return "AWS::EC2::Instance.HibernationOptions" +} diff --git a/cloudformation/ec2/aws-ec2-instance_instanceipv6address.go b/cloudformation/ec2/aws-ec2-instance_instanceipv6address.go index 1adb7133f5..3056b20cca 100644 --- a/cloudformation/ec2/aws-ec2-instance_instanceipv6address.go +++ b/cloudformation/ec2/aws-ec2-instance_instanceipv6address.go @@ -21,6 +21,9 @@ type Instance_InstanceIpv6Address struct { // 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 diff --git a/cloudformation/ec2/aws-ec2-instance_launchtemplatespecification.go b/cloudformation/ec2/aws-ec2-instance_launchtemplatespecification.go index 4571a954aa..e557f7f8e9 100644 --- a/cloudformation/ec2/aws-ec2-instance_launchtemplatespecification.go +++ b/cloudformation/ec2/aws-ec2-instance_launchtemplatespecification.go @@ -31,6 +31,9 @@ type Instance_LaunchTemplateSpecification struct { // 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 diff --git a/cloudformation/ec2/aws-ec2-instance_licensespecification.go b/cloudformation/ec2/aws-ec2-instance_licensespecification.go index 4e91638bba..d685067d94 100644 --- a/cloudformation/ec2/aws-ec2-instance_licensespecification.go +++ b/cloudformation/ec2/aws-ec2-instance_licensespecification.go @@ -21,6 +21,9 @@ type Instance_LicenseSpecification struct { // 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 diff --git a/cloudformation/ec2/aws-ec2-instance_networkinterface.go b/cloudformation/ec2/aws-ec2-instance_networkinterface.go index f29d5a3210..8f56bde4ab 100644 --- a/cloudformation/ec2/aws-ec2-instance_networkinterface.go +++ b/cloudformation/ec2/aws-ec2-instance_networkinterface.go @@ -76,6 +76,9 @@ type Instance_NetworkInterface struct { // 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 diff --git a/cloudformation/ec2/aws-ec2-instance_nodevice.go b/cloudformation/ec2/aws-ec2-instance_nodevice.go index da23a614f7..ce86c36109 100644 --- a/cloudformation/ec2/aws-ec2-instance_nodevice.go +++ b/cloudformation/ec2/aws-ec2-instance_nodevice.go @@ -16,6 +16,9 @@ type Instance_NoDevice struct { // 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 diff --git a/cloudformation/ec2/aws-ec2-instance_privateipaddressspecification.go b/cloudformation/ec2/aws-ec2-instance_privateipaddressspecification.go index d43976c537..61859d3646 100644 --- a/cloudformation/ec2/aws-ec2-instance_privateipaddressspecification.go +++ b/cloudformation/ec2/aws-ec2-instance_privateipaddressspecification.go @@ -26,6 +26,9 @@ type Instance_PrivateIpAddressSpecification struct { // 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 diff --git a/cloudformation/ec2/aws-ec2-instance_ssmassociation.go b/cloudformation/ec2/aws-ec2-instance_ssmassociation.go index 4d49d2fa1e..fa7810f43c 100644 --- a/cloudformation/ec2/aws-ec2-instance_ssmassociation.go +++ b/cloudformation/ec2/aws-ec2-instance_ssmassociation.go @@ -26,6 +26,9 @@ type Instance_SsmAssociation struct { // 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 diff --git a/cloudformation/ec2/aws-ec2-instance_volume.go b/cloudformation/ec2/aws-ec2-instance_volume.go index 6f7b5568a4..6cba9c14ab 100644 --- a/cloudformation/ec2/aws-ec2-instance_volume.go +++ b/cloudformation/ec2/aws-ec2-instance_volume.go @@ -26,6 +26,9 @@ type Instance_Volume struct { // 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 diff --git a/cloudformation/ec2/aws-ec2-internetgateway.go b/cloudformation/ec2/aws-ec2-internetgateway.go index 6423741767..79ac1d1568 100644 --- a/cloudformation/ec2/aws-ec2-internetgateway.go +++ b/cloudformation/ec2/aws-ec2-internetgateway.go @@ -26,6 +26,9 @@ type InternetGateway struct { // 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 @@ -43,12 +46,14 @@ func (r InternetGateway) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -62,6 +67,7 @@ func (r *InternetGateway) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -85,5 +91,8 @@ func (r *InternetGateway) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/ec2/aws-ec2-launchtemplate.go b/cloudformation/ec2/aws-ec2-launchtemplate.go index 7289b309a1..7f218461e5 100644 --- a/cloudformation/ec2/aws-ec2-launchtemplate.go +++ b/cloudformation/ec2/aws-ec2-launchtemplate.go @@ -30,6 +30,9 @@ type LaunchTemplate struct { // 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 @@ -47,12 +50,14 @@ func (r LaunchTemplate) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -66,6 +71,7 @@ func (r *LaunchTemplate) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -89,5 +95,8 @@ func (r *LaunchTemplate) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/ec2/aws-ec2-launchtemplate_blockdevicemapping.go b/cloudformation/ec2/aws-ec2-launchtemplate_blockdevicemapping.go index ac2ef6aab4..d6b5ffa605 100644 --- a/cloudformation/ec2/aws-ec2-launchtemplate_blockdevicemapping.go +++ b/cloudformation/ec2/aws-ec2-launchtemplate_blockdevicemapping.go @@ -36,6 +36,9 @@ type LaunchTemplate_BlockDeviceMapping struct { // 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 diff --git a/cloudformation/ec2/aws-ec2-launchtemplate_capacityreservationpreference.go b/cloudformation/ec2/aws-ec2-launchtemplate_capacityreservationpreference.go index 9c0b9fcad3..4163f9b2c1 100644 --- a/cloudformation/ec2/aws-ec2-launchtemplate_capacityreservationpreference.go +++ b/cloudformation/ec2/aws-ec2-launchtemplate_capacityreservationpreference.go @@ -16,6 +16,9 @@ type LaunchTemplate_CapacityReservationPreference struct { // 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 diff --git a/cloudformation/ec2/aws-ec2-launchtemplate_capacityreservationspecification.go b/cloudformation/ec2/aws-ec2-launchtemplate_capacityreservationspecification.go index 58036f4499..faf9bf630a 100644 --- a/cloudformation/ec2/aws-ec2-launchtemplate_capacityreservationspecification.go +++ b/cloudformation/ec2/aws-ec2-launchtemplate_capacityreservationspecification.go @@ -26,6 +26,9 @@ type LaunchTemplate_CapacityReservationSpecification struct { // 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 diff --git a/cloudformation/ec2/aws-ec2-launchtemplate_capacityreservationtarget.go b/cloudformation/ec2/aws-ec2-launchtemplate_capacityreservationtarget.go index a25ecaa0bf..0a05da6bb0 100644 --- a/cloudformation/ec2/aws-ec2-launchtemplate_capacityreservationtarget.go +++ b/cloudformation/ec2/aws-ec2-launchtemplate_capacityreservationtarget.go @@ -21,6 +21,9 @@ type LaunchTemplate_CapacityReservationTarget struct { // 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 diff --git a/cloudformation/ec2/aws-ec2-launchtemplate_cpuoptions.go b/cloudformation/ec2/aws-ec2-launchtemplate_cpuoptions.go index db341d6417..437acbd958 100644 --- a/cloudformation/ec2/aws-ec2-launchtemplate_cpuoptions.go +++ b/cloudformation/ec2/aws-ec2-launchtemplate_cpuoptions.go @@ -26,6 +26,9 @@ type LaunchTemplate_CpuOptions struct { // 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 diff --git a/cloudformation/ec2/aws-ec2-launchtemplate_creditspecification.go b/cloudformation/ec2/aws-ec2-launchtemplate_creditspecification.go index d50ca1aa73..ec67ac2bfc 100644 --- a/cloudformation/ec2/aws-ec2-launchtemplate_creditspecification.go +++ b/cloudformation/ec2/aws-ec2-launchtemplate_creditspecification.go @@ -21,6 +21,9 @@ type LaunchTemplate_CreditSpecification struct { // 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 diff --git a/cloudformation/ec2/aws-ec2-launchtemplate_ebs.go b/cloudformation/ec2/aws-ec2-launchtemplate_ebs.go index 560944df51..b02678958f 100644 --- a/cloudformation/ec2/aws-ec2-launchtemplate_ebs.go +++ b/cloudformation/ec2/aws-ec2-launchtemplate_ebs.go @@ -51,6 +51,9 @@ type LaunchTemplate_Ebs struct { // 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 diff --git a/cloudformation/ec2/aws-ec2-launchtemplate_elasticgpuspecification.go b/cloudformation/ec2/aws-ec2-launchtemplate_elasticgpuspecification.go index 170fcfe3f6..b211b797bd 100644 --- a/cloudformation/ec2/aws-ec2-launchtemplate_elasticgpuspecification.go +++ b/cloudformation/ec2/aws-ec2-launchtemplate_elasticgpuspecification.go @@ -21,6 +21,9 @@ type LaunchTemplate_ElasticGpuSpecification struct { // 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 diff --git a/cloudformation/ec2/aws-ec2-launchtemplate_hibernationoptions.go b/cloudformation/ec2/aws-ec2-launchtemplate_hibernationoptions.go index 319218f93d..23ee834dd0 100644 --- a/cloudformation/ec2/aws-ec2-launchtemplate_hibernationoptions.go +++ b/cloudformation/ec2/aws-ec2-launchtemplate_hibernationoptions.go @@ -21,6 +21,9 @@ type LaunchTemplate_HibernationOptions struct { // 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 diff --git a/cloudformation/ec2/aws-ec2-launchtemplate_iaminstanceprofile.go b/cloudformation/ec2/aws-ec2-launchtemplate_iaminstanceprofile.go index ec1f15e30a..499c6401e2 100644 --- a/cloudformation/ec2/aws-ec2-launchtemplate_iaminstanceprofile.go +++ b/cloudformation/ec2/aws-ec2-launchtemplate_iaminstanceprofile.go @@ -26,6 +26,9 @@ type LaunchTemplate_IamInstanceProfile struct { // 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 diff --git a/cloudformation/ec2/aws-ec2-launchtemplate_instancemarketoptions.go b/cloudformation/ec2/aws-ec2-launchtemplate_instancemarketoptions.go index 2ac71004f4..0059724c02 100644 --- a/cloudformation/ec2/aws-ec2-launchtemplate_instancemarketoptions.go +++ b/cloudformation/ec2/aws-ec2-launchtemplate_instancemarketoptions.go @@ -26,6 +26,9 @@ type LaunchTemplate_InstanceMarketOptions struct { // 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 diff --git a/cloudformation/ec2/aws-ec2-launchtemplate_ipv6add.go b/cloudformation/ec2/aws-ec2-launchtemplate_ipv6add.go index 8d74276e41..d72f71794d 100644 --- a/cloudformation/ec2/aws-ec2-launchtemplate_ipv6add.go +++ b/cloudformation/ec2/aws-ec2-launchtemplate_ipv6add.go @@ -21,6 +21,9 @@ type LaunchTemplate_Ipv6Add struct { // 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 diff --git a/cloudformation/ec2/aws-ec2-launchtemplate_launchtemplatedata.go b/cloudformation/ec2/aws-ec2-launchtemplate_launchtemplatedata.go index ee92bacc0c..0e2703da28 100644 --- a/cloudformation/ec2/aws-ec2-launchtemplate_launchtemplatedata.go +++ b/cloudformation/ec2/aws-ec2-launchtemplate_launchtemplatedata.go @@ -141,6 +141,9 @@ type LaunchTemplate_LaunchTemplateData struct { // 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 diff --git a/cloudformation/ec2/aws-ec2-launchtemplate_launchtemplateelasticinferenceaccelerator.go b/cloudformation/ec2/aws-ec2-launchtemplate_launchtemplateelasticinferenceaccelerator.go index 3fdf77a93d..116dba91be 100644 --- a/cloudformation/ec2/aws-ec2-launchtemplate_launchtemplateelasticinferenceaccelerator.go +++ b/cloudformation/ec2/aws-ec2-launchtemplate_launchtemplateelasticinferenceaccelerator.go @@ -21,6 +21,9 @@ type LaunchTemplate_LaunchTemplateElasticInferenceAccelerator struct { // 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 diff --git a/cloudformation/ec2/aws-ec2-launchtemplate_licensespecification.go b/cloudformation/ec2/aws-ec2-launchtemplate_licensespecification.go index 1e37afc6d0..fb81085dc7 100644 --- a/cloudformation/ec2/aws-ec2-launchtemplate_licensespecification.go +++ b/cloudformation/ec2/aws-ec2-launchtemplate_licensespecification.go @@ -21,6 +21,9 @@ type LaunchTemplate_LicenseSpecification struct { // 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 diff --git a/cloudformation/ec2/aws-ec2-launchtemplate_monitoring.go b/cloudformation/ec2/aws-ec2-launchtemplate_monitoring.go index 871aeb56d0..9bd8b07450 100644 --- a/cloudformation/ec2/aws-ec2-launchtemplate_monitoring.go +++ b/cloudformation/ec2/aws-ec2-launchtemplate_monitoring.go @@ -21,6 +21,9 @@ type LaunchTemplate_Monitoring struct { // 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 diff --git a/cloudformation/ec2/aws-ec2-launchtemplate_networkinterface.go b/cloudformation/ec2/aws-ec2-launchtemplate_networkinterface.go index 0dee837042..e210b57fde 100644 --- a/cloudformation/ec2/aws-ec2-launchtemplate_networkinterface.go +++ b/cloudformation/ec2/aws-ec2-launchtemplate_networkinterface.go @@ -81,6 +81,9 @@ type LaunchTemplate_NetworkInterface struct { // 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 diff --git a/cloudformation/ec2/aws-ec2-launchtemplate_placement.go b/cloudformation/ec2/aws-ec2-launchtemplate_placement.go index 150c86205b..1ca33a683f 100644 --- a/cloudformation/ec2/aws-ec2-launchtemplate_placement.go +++ b/cloudformation/ec2/aws-ec2-launchtemplate_placement.go @@ -41,6 +41,9 @@ type LaunchTemplate_Placement struct { // 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 diff --git a/cloudformation/ec2/aws-ec2-launchtemplate_privateipadd.go b/cloudformation/ec2/aws-ec2-launchtemplate_privateipadd.go index fbd2f495c3..4709e53d44 100644 --- a/cloudformation/ec2/aws-ec2-launchtemplate_privateipadd.go +++ b/cloudformation/ec2/aws-ec2-launchtemplate_privateipadd.go @@ -26,6 +26,9 @@ type LaunchTemplate_PrivateIpAdd struct { // 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 diff --git a/cloudformation/ec2/aws-ec2-launchtemplate_spotoptions.go b/cloudformation/ec2/aws-ec2-launchtemplate_spotoptions.go index 7e4a1e12b7..6a981c1855 100644 --- a/cloudformation/ec2/aws-ec2-launchtemplate_spotoptions.go +++ b/cloudformation/ec2/aws-ec2-launchtemplate_spotoptions.go @@ -41,6 +41,9 @@ type LaunchTemplate_SpotOptions struct { // 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 diff --git a/cloudformation/ec2/aws-ec2-launchtemplate_tagspecification.go b/cloudformation/ec2/aws-ec2-launchtemplate_tagspecification.go index 54c9ab4163..2bbae70431 100644 --- a/cloudformation/ec2/aws-ec2-launchtemplate_tagspecification.go +++ b/cloudformation/ec2/aws-ec2-launchtemplate_tagspecification.go @@ -27,6 +27,9 @@ type LaunchTemplate_TagSpecification struct { // 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 diff --git a/cloudformation/ec2/aws-ec2-natgateway.go b/cloudformation/ec2/aws-ec2-natgateway.go index dbdc4d3aea..b4b08a256c 100644 --- a/cloudformation/ec2/aws-ec2-natgateway.go +++ b/cloudformation/ec2/aws-ec2-natgateway.go @@ -36,6 +36,9 @@ type NatGateway struct { // 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 @@ -53,12 +56,14 @@ func (r NatGateway) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -72,6 +77,7 @@ func (r *NatGateway) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -95,5 +101,8 @@ func (r *NatGateway) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/ec2/aws-ec2-networkacl.go b/cloudformation/ec2/aws-ec2-networkacl.go index 69cd760e45..3dd2b2f659 100644 --- a/cloudformation/ec2/aws-ec2-networkacl.go +++ b/cloudformation/ec2/aws-ec2-networkacl.go @@ -31,6 +31,9 @@ type NetworkAcl struct { // 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 @@ -48,12 +51,14 @@ func (r NetworkAcl) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -67,6 +72,7 @@ func (r *NetworkAcl) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -90,5 +96,8 @@ func (r *NetworkAcl) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/ec2/aws-ec2-networkaclentry.go b/cloudformation/ec2/aws-ec2-networkaclentry.go index 6bf7bec638..b5de286fdd 100644 --- a/cloudformation/ec2/aws-ec2-networkaclentry.go +++ b/cloudformation/ec2/aws-ec2-networkaclentry.go @@ -65,6 +65,9 @@ type NetworkAclEntry struct { // 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 @@ -82,12 +85,14 @@ func (r NetworkAclEntry) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -101,6 +106,7 @@ func (r *NetworkAclEntry) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -124,5 +130,8 @@ func (r *NetworkAclEntry) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/ec2/aws-ec2-networkaclentry_icmp.go b/cloudformation/ec2/aws-ec2-networkaclentry_icmp.go index f82b6d3f09..b2227277c6 100644 --- a/cloudformation/ec2/aws-ec2-networkaclentry_icmp.go +++ b/cloudformation/ec2/aws-ec2-networkaclentry_icmp.go @@ -26,6 +26,9 @@ type NetworkAclEntry_Icmp struct { // 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 diff --git a/cloudformation/ec2/aws-ec2-networkaclentry_portrange.go b/cloudformation/ec2/aws-ec2-networkaclentry_portrange.go index a841cbcc9a..5958f49305 100644 --- a/cloudformation/ec2/aws-ec2-networkaclentry_portrange.go +++ b/cloudformation/ec2/aws-ec2-networkaclentry_portrange.go @@ -26,6 +26,9 @@ type NetworkAclEntry_PortRange struct { // 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 diff --git a/cloudformation/ec2/aws-ec2-networkinterface.go b/cloudformation/ec2/aws-ec2-networkinterface.go index 7d4b4ee634..786a638612 100644 --- a/cloudformation/ec2/aws-ec2-networkinterface.go +++ b/cloudformation/ec2/aws-ec2-networkinterface.go @@ -76,6 +76,9 @@ type NetworkInterface struct { // 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 @@ -93,12 +96,14 @@ func (r NetworkInterface) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -112,6 +117,7 @@ func (r *NetworkInterface) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -135,5 +141,8 @@ func (r *NetworkInterface) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/ec2/aws-ec2-networkinterface_instanceipv6address.go b/cloudformation/ec2/aws-ec2-networkinterface_instanceipv6address.go index cd4af69eb4..f089b2f26d 100644 --- a/cloudformation/ec2/aws-ec2-networkinterface_instanceipv6address.go +++ b/cloudformation/ec2/aws-ec2-networkinterface_instanceipv6address.go @@ -21,6 +21,9 @@ type NetworkInterface_InstanceIpv6Address struct { // 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 diff --git a/cloudformation/ec2/aws-ec2-networkinterface_privateipaddressspecification.go b/cloudformation/ec2/aws-ec2-networkinterface_privateipaddressspecification.go index a1d0d2166a..e6bb2601c9 100644 --- a/cloudformation/ec2/aws-ec2-networkinterface_privateipaddressspecification.go +++ b/cloudformation/ec2/aws-ec2-networkinterface_privateipaddressspecification.go @@ -26,6 +26,9 @@ type NetworkInterface_PrivateIpAddressSpecification struct { // 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 diff --git a/cloudformation/ec2/aws-ec2-networkinterfaceattachment.go b/cloudformation/ec2/aws-ec2-networkinterfaceattachment.go index 8e529751db..6896de3510 100644 --- a/cloudformation/ec2/aws-ec2-networkinterfaceattachment.go +++ b/cloudformation/ec2/aws-ec2-networkinterfaceattachment.go @@ -40,6 +40,9 @@ type NetworkInterfaceAttachment struct { // 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 @@ -57,12 +60,14 @@ func (r NetworkInterfaceAttachment) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -76,6 +81,7 @@ func (r *NetworkInterfaceAttachment) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -99,5 +105,8 @@ func (r *NetworkInterfaceAttachment) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/ec2/aws-ec2-networkinterfacepermission.go b/cloudformation/ec2/aws-ec2-networkinterfacepermission.go index a830e88d55..b87d4f4c35 100644 --- a/cloudformation/ec2/aws-ec2-networkinterfacepermission.go +++ b/cloudformation/ec2/aws-ec2-networkinterfacepermission.go @@ -35,6 +35,9 @@ type NetworkInterfacePermission struct { // 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 @@ -52,12 +55,14 @@ func (r NetworkInterfacePermission) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -71,6 +76,7 @@ func (r *NetworkInterfacePermission) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -94,5 +100,8 @@ func (r *NetworkInterfacePermission) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/ec2/aws-ec2-placementgroup.go b/cloudformation/ec2/aws-ec2-placementgroup.go index b37266e29a..0c2dd9407d 100644 --- a/cloudformation/ec2/aws-ec2-placementgroup.go +++ b/cloudformation/ec2/aws-ec2-placementgroup.go @@ -25,6 +25,9 @@ type PlacementGroup struct { // 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 @@ -42,12 +45,14 @@ func (r PlacementGroup) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -61,6 +66,7 @@ func (r *PlacementGroup) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -84,5 +90,8 @@ func (r *PlacementGroup) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/ec2/aws-ec2-route.go b/cloudformation/ec2/aws-ec2-route.go index a4ab896615..8029559af0 100644 --- a/cloudformation/ec2/aws-ec2-route.go +++ b/cloudformation/ec2/aws-ec2-route.go @@ -70,6 +70,9 @@ type Route struct { // 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 @@ -87,12 +90,14 @@ func (r Route) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -106,6 +111,7 @@ func (r *Route) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -129,5 +135,8 @@ func (r *Route) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/ec2/aws-ec2-routetable.go b/cloudformation/ec2/aws-ec2-routetable.go index d3a8ca024c..daecf58064 100644 --- a/cloudformation/ec2/aws-ec2-routetable.go +++ b/cloudformation/ec2/aws-ec2-routetable.go @@ -31,6 +31,9 @@ type RouteTable struct { // 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 @@ -48,12 +51,14 @@ func (r RouteTable) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -67,6 +72,7 @@ func (r *RouteTable) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -90,5 +96,8 @@ func (r *RouteTable) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/ec2/aws-ec2-securitygroup.go b/cloudformation/ec2/aws-ec2-securitygroup.go index 4a8a13114b..99cc1cedcf 100644 --- a/cloudformation/ec2/aws-ec2-securitygroup.go +++ b/cloudformation/ec2/aws-ec2-securitygroup.go @@ -51,6 +51,9 @@ type SecurityGroup struct { // 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 @@ -68,12 +71,14 @@ func (r SecurityGroup) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -87,6 +92,7 @@ func (r *SecurityGroup) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -110,5 +116,8 @@ func (r *SecurityGroup) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/ec2/aws-ec2-securitygroup_egress.go b/cloudformation/ec2/aws-ec2-securitygroup_egress.go index 579b1980d4..5fdb13122e 100644 --- a/cloudformation/ec2/aws-ec2-securitygroup_egress.go +++ b/cloudformation/ec2/aws-ec2-securitygroup_egress.go @@ -56,6 +56,9 @@ type SecurityGroup_Egress struct { // 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 diff --git a/cloudformation/ec2/aws-ec2-securitygroup_ingress.go b/cloudformation/ec2/aws-ec2-securitygroup_ingress.go index cd2f746019..b4610a4799 100644 --- a/cloudformation/ec2/aws-ec2-securitygroup_ingress.go +++ b/cloudformation/ec2/aws-ec2-securitygroup_ingress.go @@ -66,6 +66,9 @@ type SecurityGroup_Ingress struct { // 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 diff --git a/cloudformation/ec2/aws-ec2-securitygroupegress.go b/cloudformation/ec2/aws-ec2-securitygroupegress.go index ddc0584ab0..a7aa502057 100644 --- a/cloudformation/ec2/aws-ec2-securitygroupegress.go +++ b/cloudformation/ec2/aws-ec2-securitygroupegress.go @@ -65,6 +65,9 @@ type SecurityGroupEgress struct { // 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 @@ -82,12 +85,14 @@ func (r SecurityGroupEgress) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -101,6 +106,7 @@ func (r *SecurityGroupEgress) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -124,5 +130,8 @@ func (r *SecurityGroupEgress) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/ec2/aws-ec2-securitygroupingress.go b/cloudformation/ec2/aws-ec2-securitygroupingress.go index be85e8f853..125fe782b2 100644 --- a/cloudformation/ec2/aws-ec2-securitygroupingress.go +++ b/cloudformation/ec2/aws-ec2-securitygroupingress.go @@ -80,6 +80,9 @@ type SecurityGroupIngress struct { // 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 @@ -97,12 +100,14 @@ func (r SecurityGroupIngress) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -116,6 +121,7 @@ func (r *SecurityGroupIngress) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -139,5 +145,8 @@ func (r *SecurityGroupIngress) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/ec2/aws-ec2-spotfleet.go b/cloudformation/ec2/aws-ec2-spotfleet.go index 273d7dec56..8a8d1459db 100644 --- a/cloudformation/ec2/aws-ec2-spotfleet.go +++ b/cloudformation/ec2/aws-ec2-spotfleet.go @@ -25,6 +25,9 @@ type SpotFleet struct { // 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 @@ -42,12 +45,14 @@ func (r SpotFleet) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -61,6 +66,7 @@ func (r *SpotFleet) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -84,5 +90,8 @@ func (r *SpotFleet) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/ec2/aws-ec2-spotfleet_blockdevicemapping.go b/cloudformation/ec2/aws-ec2-spotfleet_blockdevicemapping.go index 887285131f..ca786c6157 100644 --- a/cloudformation/ec2/aws-ec2-spotfleet_blockdevicemapping.go +++ b/cloudformation/ec2/aws-ec2-spotfleet_blockdevicemapping.go @@ -36,6 +36,9 @@ type SpotFleet_BlockDeviceMapping struct { // 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 diff --git a/cloudformation/ec2/aws-ec2-spotfleet_classicloadbalancer.go b/cloudformation/ec2/aws-ec2-spotfleet_classicloadbalancer.go index eec8d93922..e05df68357 100644 --- a/cloudformation/ec2/aws-ec2-spotfleet_classicloadbalancer.go +++ b/cloudformation/ec2/aws-ec2-spotfleet_classicloadbalancer.go @@ -21,6 +21,9 @@ type SpotFleet_ClassicLoadBalancer struct { // 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 diff --git a/cloudformation/ec2/aws-ec2-spotfleet_classicloadbalancersconfig.go b/cloudformation/ec2/aws-ec2-spotfleet_classicloadbalancersconfig.go index 38e750838c..67993f5c19 100644 --- a/cloudformation/ec2/aws-ec2-spotfleet_classicloadbalancersconfig.go +++ b/cloudformation/ec2/aws-ec2-spotfleet_classicloadbalancersconfig.go @@ -21,6 +21,9 @@ type SpotFleet_ClassicLoadBalancersConfig struct { // 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 diff --git a/cloudformation/ec2/aws-ec2-spotfleet_ebsblockdevice.go b/cloudformation/ec2/aws-ec2-spotfleet_ebsblockdevice.go index 338f6270ef..b1c35d21cc 100644 --- a/cloudformation/ec2/aws-ec2-spotfleet_ebsblockdevice.go +++ b/cloudformation/ec2/aws-ec2-spotfleet_ebsblockdevice.go @@ -46,6 +46,9 @@ type SpotFleet_EbsBlockDevice struct { // 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 diff --git a/cloudformation/ec2/aws-ec2-spotfleet_fleetlaunchtemplatespecification.go b/cloudformation/ec2/aws-ec2-spotfleet_fleetlaunchtemplatespecification.go index dcef9943d5..a176171282 100644 --- a/cloudformation/ec2/aws-ec2-spotfleet_fleetlaunchtemplatespecification.go +++ b/cloudformation/ec2/aws-ec2-spotfleet_fleetlaunchtemplatespecification.go @@ -31,6 +31,9 @@ type SpotFleet_FleetLaunchTemplateSpecification struct { // 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 diff --git a/cloudformation/ec2/aws-ec2-spotfleet_groupidentifier.go b/cloudformation/ec2/aws-ec2-spotfleet_groupidentifier.go index 397fb4e638..d176677410 100644 --- a/cloudformation/ec2/aws-ec2-spotfleet_groupidentifier.go +++ b/cloudformation/ec2/aws-ec2-spotfleet_groupidentifier.go @@ -21,6 +21,9 @@ type SpotFleet_GroupIdentifier struct { // 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 diff --git a/cloudformation/ec2/aws-ec2-spotfleet_iaminstanceprofilespecification.go b/cloudformation/ec2/aws-ec2-spotfleet_iaminstanceprofilespecification.go index fcd26e7272..d4f98edbbf 100644 --- a/cloudformation/ec2/aws-ec2-spotfleet_iaminstanceprofilespecification.go +++ b/cloudformation/ec2/aws-ec2-spotfleet_iaminstanceprofilespecification.go @@ -21,6 +21,9 @@ type SpotFleet_IamInstanceProfileSpecification struct { // 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 diff --git a/cloudformation/ec2/aws-ec2-spotfleet_instanceipv6address.go b/cloudformation/ec2/aws-ec2-spotfleet_instanceipv6address.go index e5074ff49d..f222ef8edf 100644 --- a/cloudformation/ec2/aws-ec2-spotfleet_instanceipv6address.go +++ b/cloudformation/ec2/aws-ec2-spotfleet_instanceipv6address.go @@ -21,6 +21,9 @@ type SpotFleet_InstanceIpv6Address struct { // 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 diff --git a/cloudformation/ec2/aws-ec2-spotfleet_instancenetworkinterfacespecification.go b/cloudformation/ec2/aws-ec2-spotfleet_instancenetworkinterfacespecification.go index 078f9ba59e..7158dd8a05 100644 --- a/cloudformation/ec2/aws-ec2-spotfleet_instancenetworkinterfacespecification.go +++ b/cloudformation/ec2/aws-ec2-spotfleet_instancenetworkinterfacespecification.go @@ -71,6 +71,9 @@ type SpotFleet_InstanceNetworkInterfaceSpecification struct { // 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 diff --git a/cloudformation/ec2/aws-ec2-spotfleet_launchtemplateconfig.go b/cloudformation/ec2/aws-ec2-spotfleet_launchtemplateconfig.go index 1c6d734795..e3cd30d03b 100644 --- a/cloudformation/ec2/aws-ec2-spotfleet_launchtemplateconfig.go +++ b/cloudformation/ec2/aws-ec2-spotfleet_launchtemplateconfig.go @@ -26,6 +26,9 @@ type SpotFleet_LaunchTemplateConfig struct { // 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 diff --git a/cloudformation/ec2/aws-ec2-spotfleet_launchtemplateoverrides.go b/cloudformation/ec2/aws-ec2-spotfleet_launchtemplateoverrides.go index 460355c99a..a43d14012d 100644 --- a/cloudformation/ec2/aws-ec2-spotfleet_launchtemplateoverrides.go +++ b/cloudformation/ec2/aws-ec2-spotfleet_launchtemplateoverrides.go @@ -41,6 +41,9 @@ type SpotFleet_LaunchTemplateOverrides struct { // 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 diff --git a/cloudformation/ec2/aws-ec2-spotfleet_loadbalancersconfig.go b/cloudformation/ec2/aws-ec2-spotfleet_loadbalancersconfig.go index 73568c5ef0..d45bcf7aa2 100644 --- a/cloudformation/ec2/aws-ec2-spotfleet_loadbalancersconfig.go +++ b/cloudformation/ec2/aws-ec2-spotfleet_loadbalancersconfig.go @@ -26,6 +26,9 @@ type SpotFleet_LoadBalancersConfig struct { // 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 diff --git a/cloudformation/ec2/aws-ec2-spotfleet_privateipaddressspecification.go b/cloudformation/ec2/aws-ec2-spotfleet_privateipaddressspecification.go index 38c3cfdc1c..02e3e43645 100644 --- a/cloudformation/ec2/aws-ec2-spotfleet_privateipaddressspecification.go +++ b/cloudformation/ec2/aws-ec2-spotfleet_privateipaddressspecification.go @@ -26,6 +26,9 @@ type SpotFleet_PrivateIpAddressSpecification struct { // 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 diff --git a/cloudformation/ec2/aws-ec2-spotfleet_spotfleetlaunchspecification.go b/cloudformation/ec2/aws-ec2-spotfleet_spotfleetlaunchspecification.go index 1e155953af..f525c0ac7f 100644 --- a/cloudformation/ec2/aws-ec2-spotfleet_spotfleetlaunchspecification.go +++ b/cloudformation/ec2/aws-ec2-spotfleet_spotfleetlaunchspecification.go @@ -101,6 +101,9 @@ type SpotFleet_SpotFleetLaunchSpecification struct { // 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 diff --git a/cloudformation/ec2/aws-ec2-spotfleet_spotfleetmonitoring.go b/cloudformation/ec2/aws-ec2-spotfleet_spotfleetmonitoring.go index fcadd5e1bc..319c8832e9 100644 --- a/cloudformation/ec2/aws-ec2-spotfleet_spotfleetmonitoring.go +++ b/cloudformation/ec2/aws-ec2-spotfleet_spotfleetmonitoring.go @@ -21,6 +21,9 @@ type SpotFleet_SpotFleetMonitoring struct { // 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 diff --git a/cloudformation/ec2/aws-ec2-spotfleet_spotfleetrequestconfigdata.go b/cloudformation/ec2/aws-ec2-spotfleet_spotfleetrequestconfigdata.go index 7aec51145e..d0edbdf8c4 100644 --- a/cloudformation/ec2/aws-ec2-spotfleet_spotfleetrequestconfigdata.go +++ b/cloudformation/ec2/aws-ec2-spotfleet_spotfleetrequestconfigdata.go @@ -86,6 +86,9 @@ type SpotFleet_SpotFleetRequestConfigData struct { // 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 diff --git a/cloudformation/ec2/aws-ec2-spotfleet_spotfleettagspecification.go b/cloudformation/ec2/aws-ec2-spotfleet_spotfleettagspecification.go index 45bafd4517..6e82ba3f68 100644 --- a/cloudformation/ec2/aws-ec2-spotfleet_spotfleettagspecification.go +++ b/cloudformation/ec2/aws-ec2-spotfleet_spotfleettagspecification.go @@ -27,6 +27,9 @@ type SpotFleet_SpotFleetTagSpecification struct { // 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 diff --git a/cloudformation/ec2/aws-ec2-spotfleet_spotplacement.go b/cloudformation/ec2/aws-ec2-spotfleet_spotplacement.go index 3b527c5ef8..067db82e7f 100644 --- a/cloudformation/ec2/aws-ec2-spotfleet_spotplacement.go +++ b/cloudformation/ec2/aws-ec2-spotfleet_spotplacement.go @@ -31,6 +31,9 @@ type SpotFleet_SpotPlacement struct { // 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 diff --git a/cloudformation/ec2/aws-ec2-spotfleet_targetgroup.go b/cloudformation/ec2/aws-ec2-spotfleet_targetgroup.go index 173b3ef972..dedb63a733 100644 --- a/cloudformation/ec2/aws-ec2-spotfleet_targetgroup.go +++ b/cloudformation/ec2/aws-ec2-spotfleet_targetgroup.go @@ -21,6 +21,9 @@ type SpotFleet_TargetGroup struct { // 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 diff --git a/cloudformation/ec2/aws-ec2-spotfleet_targetgroupsconfig.go b/cloudformation/ec2/aws-ec2-spotfleet_targetgroupsconfig.go index 93e892d430..7c0a0e897f 100644 --- a/cloudformation/ec2/aws-ec2-spotfleet_targetgroupsconfig.go +++ b/cloudformation/ec2/aws-ec2-spotfleet_targetgroupsconfig.go @@ -21,6 +21,9 @@ type SpotFleet_TargetGroupsConfig struct { // 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 diff --git a/cloudformation/ec2/aws-ec2-subnet.go b/cloudformation/ec2/aws-ec2-subnet.go index 8994073ace..5049fd3fbc 100644 --- a/cloudformation/ec2/aws-ec2-subnet.go +++ b/cloudformation/ec2/aws-ec2-subnet.go @@ -56,6 +56,9 @@ type Subnet struct { // 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 @@ -73,12 +76,14 @@ func (r Subnet) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -92,6 +97,7 @@ func (r *Subnet) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -115,5 +121,8 @@ func (r *Subnet) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/ec2/aws-ec2-subnetcidrblock.go b/cloudformation/ec2/aws-ec2-subnetcidrblock.go index 2dfc13ae08..d039ece50a 100644 --- a/cloudformation/ec2/aws-ec2-subnetcidrblock.go +++ b/cloudformation/ec2/aws-ec2-subnetcidrblock.go @@ -30,6 +30,9 @@ type SubnetCidrBlock struct { // 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 @@ -47,12 +50,14 @@ func (r SubnetCidrBlock) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -66,6 +71,7 @@ func (r *SubnetCidrBlock) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -89,5 +95,8 @@ func (r *SubnetCidrBlock) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/ec2/aws-ec2-subnetnetworkaclassociation.go b/cloudformation/ec2/aws-ec2-subnetnetworkaclassociation.go index 9ba19b9bb0..61e3437e4b 100644 --- a/cloudformation/ec2/aws-ec2-subnetnetworkaclassociation.go +++ b/cloudformation/ec2/aws-ec2-subnetnetworkaclassociation.go @@ -30,6 +30,9 @@ type SubnetNetworkAclAssociation struct { // 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 @@ -47,12 +50,14 @@ func (r SubnetNetworkAclAssociation) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -66,6 +71,7 @@ func (r *SubnetNetworkAclAssociation) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -89,5 +95,8 @@ func (r *SubnetNetworkAclAssociation) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/ec2/aws-ec2-subnetroutetableassociation.go b/cloudformation/ec2/aws-ec2-subnetroutetableassociation.go index 2e9de591ae..a80445313a 100644 --- a/cloudformation/ec2/aws-ec2-subnetroutetableassociation.go +++ b/cloudformation/ec2/aws-ec2-subnetroutetableassociation.go @@ -30,6 +30,9 @@ type SubnetRouteTableAssociation struct { // 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 @@ -47,12 +50,14 @@ func (r SubnetRouteTableAssociation) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -66,6 +71,7 @@ func (r *SubnetRouteTableAssociation) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -89,5 +95,8 @@ func (r *SubnetRouteTableAssociation) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/ec2/aws-ec2-trafficmirrorfilter.go b/cloudformation/ec2/aws-ec2-trafficmirrorfilter.go index 1c3046232a..7e2627e6d4 100644 --- a/cloudformation/ec2/aws-ec2-trafficmirrorfilter.go +++ b/cloudformation/ec2/aws-ec2-trafficmirrorfilter.go @@ -36,6 +36,9 @@ type TrafficMirrorFilter struct { // 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 @@ -53,12 +56,14 @@ func (r TrafficMirrorFilter) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -72,6 +77,7 @@ func (r *TrafficMirrorFilter) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -95,5 +101,8 @@ func (r *TrafficMirrorFilter) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/ec2/aws-ec2-trafficmirrorfilterrule.go b/cloudformation/ec2/aws-ec2-trafficmirrorfilterrule.go index bd51077dce..6dfdbd3262 100644 --- a/cloudformation/ec2/aws-ec2-trafficmirrorfilterrule.go +++ b/cloudformation/ec2/aws-ec2-trafficmirrorfilterrule.go @@ -70,6 +70,9 @@ type TrafficMirrorFilterRule struct { // 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 @@ -87,12 +90,14 @@ func (r TrafficMirrorFilterRule) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -106,6 +111,7 @@ func (r *TrafficMirrorFilterRule) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -129,5 +135,8 @@ func (r *TrafficMirrorFilterRule) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/ec2/aws-ec2-trafficmirrorfilterrule_trafficmirrorportrange.go b/cloudformation/ec2/aws-ec2-trafficmirrorfilterrule_trafficmirrorportrange.go index 6b3896b3bf..27e25daecd 100644 --- a/cloudformation/ec2/aws-ec2-trafficmirrorfilterrule_trafficmirrorportrange.go +++ b/cloudformation/ec2/aws-ec2-trafficmirrorfilterrule_trafficmirrorportrange.go @@ -26,6 +26,9 @@ type TrafficMirrorFilterRule_TrafficMirrorPortRange struct { // 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 diff --git a/cloudformation/ec2/aws-ec2-trafficmirrorsession.go b/cloudformation/ec2/aws-ec2-trafficmirrorsession.go index cf77d18566..a607c0e346 100644 --- a/cloudformation/ec2/aws-ec2-trafficmirrorsession.go +++ b/cloudformation/ec2/aws-ec2-trafficmirrorsession.go @@ -61,6 +61,9 @@ type TrafficMirrorSession struct { // 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 @@ -78,12 +81,14 @@ func (r TrafficMirrorSession) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -97,6 +102,7 @@ func (r *TrafficMirrorSession) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -120,5 +126,8 @@ func (r *TrafficMirrorSession) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/ec2/aws-ec2-trafficmirrortarget.go b/cloudformation/ec2/aws-ec2-trafficmirrortarget.go index 2b6001ec93..7214f4c9b3 100644 --- a/cloudformation/ec2/aws-ec2-trafficmirrortarget.go +++ b/cloudformation/ec2/aws-ec2-trafficmirrortarget.go @@ -41,6 +41,9 @@ type TrafficMirrorTarget struct { // 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 @@ -58,12 +61,14 @@ func (r TrafficMirrorTarget) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -77,6 +82,7 @@ func (r *TrafficMirrorTarget) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -100,5 +106,8 @@ func (r *TrafficMirrorTarget) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/ec2/aws-ec2-transitgateway.go b/cloudformation/ec2/aws-ec2-transitgateway.go index 6e43af7bdb..6e5a717e3c 100644 --- a/cloudformation/ec2/aws-ec2-transitgateway.go +++ b/cloudformation/ec2/aws-ec2-transitgateway.go @@ -61,6 +61,9 @@ type TransitGateway struct { // 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 @@ -78,12 +81,14 @@ func (r TransitGateway) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -97,6 +102,7 @@ func (r *TransitGateway) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -120,5 +126,8 @@ func (r *TransitGateway) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/ec2/aws-ec2-transitgatewayattachment.go b/cloudformation/ec2/aws-ec2-transitgatewayattachment.go index 2bbf70c15f..acb7f95372 100644 --- a/cloudformation/ec2/aws-ec2-transitgatewayattachment.go +++ b/cloudformation/ec2/aws-ec2-transitgatewayattachment.go @@ -41,6 +41,9 @@ type TransitGatewayAttachment struct { // 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 @@ -58,12 +61,14 @@ func (r TransitGatewayAttachment) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -77,6 +82,7 @@ func (r *TransitGatewayAttachment) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -100,5 +106,8 @@ func (r *TransitGatewayAttachment) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/ec2/aws-ec2-transitgatewayroute.go b/cloudformation/ec2/aws-ec2-transitgatewayroute.go index 6985d511c2..ed6def9ff1 100644 --- a/cloudformation/ec2/aws-ec2-transitgatewayroute.go +++ b/cloudformation/ec2/aws-ec2-transitgatewayroute.go @@ -40,6 +40,9 @@ type TransitGatewayRoute struct { // 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 @@ -57,12 +60,14 @@ func (r TransitGatewayRoute) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -76,6 +81,7 @@ func (r *TransitGatewayRoute) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -99,5 +105,8 @@ func (r *TransitGatewayRoute) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/ec2/aws-ec2-transitgatewayroutetable.go b/cloudformation/ec2/aws-ec2-transitgatewayroutetable.go index 537e5f0c82..848abf534d 100644 --- a/cloudformation/ec2/aws-ec2-transitgatewayroutetable.go +++ b/cloudformation/ec2/aws-ec2-transitgatewayroutetable.go @@ -31,6 +31,9 @@ type TransitGatewayRouteTable struct { // 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 @@ -48,12 +51,14 @@ func (r TransitGatewayRouteTable) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -67,6 +72,7 @@ func (r *TransitGatewayRouteTable) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -90,5 +96,8 @@ func (r *TransitGatewayRouteTable) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/ec2/aws-ec2-transitgatewayroutetableassociation.go b/cloudformation/ec2/aws-ec2-transitgatewayroutetableassociation.go index 4b212065cc..02b2ca9dd8 100644 --- a/cloudformation/ec2/aws-ec2-transitgatewayroutetableassociation.go +++ b/cloudformation/ec2/aws-ec2-transitgatewayroutetableassociation.go @@ -30,6 +30,9 @@ type TransitGatewayRouteTableAssociation struct { // 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 @@ -47,12 +50,14 @@ func (r TransitGatewayRouteTableAssociation) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -66,6 +71,7 @@ func (r *TransitGatewayRouteTableAssociation) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -89,5 +95,8 @@ func (r *TransitGatewayRouteTableAssociation) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/ec2/aws-ec2-transitgatewayroutetablepropagation.go b/cloudformation/ec2/aws-ec2-transitgatewayroutetablepropagation.go index 2605d1e7a6..c3271afd5a 100644 --- a/cloudformation/ec2/aws-ec2-transitgatewayroutetablepropagation.go +++ b/cloudformation/ec2/aws-ec2-transitgatewayroutetablepropagation.go @@ -30,6 +30,9 @@ type TransitGatewayRouteTablePropagation struct { // 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 @@ -47,12 +50,14 @@ func (r TransitGatewayRouteTablePropagation) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -66,6 +71,7 @@ func (r *TransitGatewayRouteTablePropagation) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -89,5 +95,8 @@ func (r *TransitGatewayRouteTablePropagation) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/ec2/aws-ec2-volume.go b/cloudformation/ec2/aws-ec2-volume.go index 551ec545c8..05c19c5601 100644 --- a/cloudformation/ec2/aws-ec2-volume.go +++ b/cloudformation/ec2/aws-ec2-volume.go @@ -66,6 +66,9 @@ type Volume struct { // 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 @@ -83,12 +86,14 @@ func (r Volume) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -102,6 +107,7 @@ func (r *Volume) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -125,5 +131,8 @@ func (r *Volume) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/ec2/aws-ec2-volumeattachment.go b/cloudformation/ec2/aws-ec2-volumeattachment.go index 50e9308c16..754109fa1b 100644 --- a/cloudformation/ec2/aws-ec2-volumeattachment.go +++ b/cloudformation/ec2/aws-ec2-volumeattachment.go @@ -35,6 +35,9 @@ type VolumeAttachment struct { // 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 @@ -52,12 +55,14 @@ func (r VolumeAttachment) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -71,6 +76,7 @@ func (r *VolumeAttachment) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -94,5 +100,8 @@ func (r *VolumeAttachment) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/ec2/aws-ec2-vpc.go b/cloudformation/ec2/aws-ec2-vpc.go index 1282ca08da..877dfed97b 100644 --- a/cloudformation/ec2/aws-ec2-vpc.go +++ b/cloudformation/ec2/aws-ec2-vpc.go @@ -46,6 +46,9 @@ type VPC struct { // 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 @@ -63,12 +66,14 @@ func (r VPC) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -82,6 +87,7 @@ func (r *VPC) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -105,5 +111,8 @@ func (r *VPC) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/ec2/aws-ec2-vpccidrblock.go b/cloudformation/ec2/aws-ec2-vpccidrblock.go index 0bbaf1272e..1ae9bdd961 100644 --- a/cloudformation/ec2/aws-ec2-vpccidrblock.go +++ b/cloudformation/ec2/aws-ec2-vpccidrblock.go @@ -35,6 +35,9 @@ type VPCCidrBlock struct { // 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 @@ -52,12 +55,14 @@ func (r VPCCidrBlock) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -71,6 +76,7 @@ func (r *VPCCidrBlock) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -94,5 +100,8 @@ func (r *VPCCidrBlock) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/ec2/aws-ec2-vpcdhcpoptionsassociation.go b/cloudformation/ec2/aws-ec2-vpcdhcpoptionsassociation.go index 1a307e7221..80e232627d 100644 --- a/cloudformation/ec2/aws-ec2-vpcdhcpoptionsassociation.go +++ b/cloudformation/ec2/aws-ec2-vpcdhcpoptionsassociation.go @@ -30,6 +30,9 @@ type VPCDHCPOptionsAssociation struct { // 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 @@ -47,12 +50,14 @@ func (r VPCDHCPOptionsAssociation) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -66,6 +71,7 @@ func (r *VPCDHCPOptionsAssociation) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -89,5 +95,8 @@ func (r *VPCDHCPOptionsAssociation) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/ec2/aws-ec2-vpcendpoint.go b/cloudformation/ec2/aws-ec2-vpcendpoint.go index 37e3cbe1c2..406009bab6 100644 --- a/cloudformation/ec2/aws-ec2-vpcendpoint.go +++ b/cloudformation/ec2/aws-ec2-vpcendpoint.go @@ -60,6 +60,9 @@ type VPCEndpoint struct { // 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 @@ -77,12 +80,14 @@ func (r VPCEndpoint) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -96,6 +101,7 @@ func (r *VPCEndpoint) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -119,5 +125,8 @@ func (r *VPCEndpoint) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/ec2/aws-ec2-vpcendpointconnectionnotification.go b/cloudformation/ec2/aws-ec2-vpcendpointconnectionnotification.go index 8dfa81f307..58f0d1b06e 100644 --- a/cloudformation/ec2/aws-ec2-vpcendpointconnectionnotification.go +++ b/cloudformation/ec2/aws-ec2-vpcendpointconnectionnotification.go @@ -40,6 +40,9 @@ type VPCEndpointConnectionNotification struct { // 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 @@ -57,12 +60,14 @@ func (r VPCEndpointConnectionNotification) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -76,6 +81,7 @@ func (r *VPCEndpointConnectionNotification) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -99,5 +105,8 @@ func (r *VPCEndpointConnectionNotification) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/ec2/aws-ec2-vpcendpointservice.go b/cloudformation/ec2/aws-ec2-vpcendpointservice.go index 5b5784e27f..548cd07422 100644 --- a/cloudformation/ec2/aws-ec2-vpcendpointservice.go +++ b/cloudformation/ec2/aws-ec2-vpcendpointservice.go @@ -30,6 +30,9 @@ type VPCEndpointService struct { // 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 @@ -47,12 +50,14 @@ func (r VPCEndpointService) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -66,6 +71,7 @@ func (r *VPCEndpointService) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -89,5 +95,8 @@ func (r *VPCEndpointService) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/ec2/aws-ec2-vpcendpointservicepermissions.go b/cloudformation/ec2/aws-ec2-vpcendpointservicepermissions.go index 0a42b1c650..1854341ed6 100644 --- a/cloudformation/ec2/aws-ec2-vpcendpointservicepermissions.go +++ b/cloudformation/ec2/aws-ec2-vpcendpointservicepermissions.go @@ -30,6 +30,9 @@ type VPCEndpointServicePermissions struct { // 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 @@ -47,12 +50,14 @@ func (r VPCEndpointServicePermissions) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -66,6 +71,7 @@ func (r *VPCEndpointServicePermissions) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -89,5 +95,8 @@ func (r *VPCEndpointServicePermissions) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/ec2/aws-ec2-vpcgatewayattachment.go b/cloudformation/ec2/aws-ec2-vpcgatewayattachment.go index 70d15bd529..24b10c7e76 100644 --- a/cloudformation/ec2/aws-ec2-vpcgatewayattachment.go +++ b/cloudformation/ec2/aws-ec2-vpcgatewayattachment.go @@ -35,6 +35,9 @@ type VPCGatewayAttachment struct { // 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 @@ -52,12 +55,14 @@ func (r VPCGatewayAttachment) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -71,6 +76,7 @@ func (r *VPCGatewayAttachment) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -94,5 +100,8 @@ func (r *VPCGatewayAttachment) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/ec2/aws-ec2-vpcpeeringconnection.go b/cloudformation/ec2/aws-ec2-vpcpeeringconnection.go index 713e0319f6..f17c02dbcd 100644 --- a/cloudformation/ec2/aws-ec2-vpcpeeringconnection.go +++ b/cloudformation/ec2/aws-ec2-vpcpeeringconnection.go @@ -51,6 +51,9 @@ type VPCPeeringConnection struct { // 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 @@ -68,12 +71,14 @@ func (r VPCPeeringConnection) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -87,6 +92,7 @@ func (r *VPCPeeringConnection) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -110,5 +116,8 @@ func (r *VPCPeeringConnection) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/ec2/aws-ec2-vpnconnection.go b/cloudformation/ec2/aws-ec2-vpnconnection.go index 786b231442..3e0df7c8b3 100644 --- a/cloudformation/ec2/aws-ec2-vpnconnection.go +++ b/cloudformation/ec2/aws-ec2-vpnconnection.go @@ -56,6 +56,9 @@ type VPNConnection struct { // 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 @@ -73,12 +76,14 @@ func (r VPNConnection) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -92,6 +97,7 @@ func (r *VPNConnection) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -115,5 +121,8 @@ func (r *VPNConnection) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/ec2/aws-ec2-vpnconnection_vpntunneloptionsspecification.go b/cloudformation/ec2/aws-ec2-vpnconnection_vpntunneloptionsspecification.go index cbb8eaefe3..02c96fcb16 100644 --- a/cloudformation/ec2/aws-ec2-vpnconnection_vpntunneloptionsspecification.go +++ b/cloudformation/ec2/aws-ec2-vpnconnection_vpntunneloptionsspecification.go @@ -26,6 +26,9 @@ type VPNConnection_VpnTunnelOptionsSpecification struct { // 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 diff --git a/cloudformation/ec2/aws-ec2-vpnconnectionroute.go b/cloudformation/ec2/aws-ec2-vpnconnectionroute.go index 9580b3988d..a5f1f73878 100644 --- a/cloudformation/ec2/aws-ec2-vpnconnectionroute.go +++ b/cloudformation/ec2/aws-ec2-vpnconnectionroute.go @@ -30,6 +30,9 @@ type VPNConnectionRoute struct { // 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 @@ -47,12 +50,14 @@ func (r VPNConnectionRoute) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -66,6 +71,7 @@ func (r *VPNConnectionRoute) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -89,5 +95,8 @@ func (r *VPNConnectionRoute) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/ec2/aws-ec2-vpngateway.go b/cloudformation/ec2/aws-ec2-vpngateway.go index 7500608524..eae217cb4b 100644 --- a/cloudformation/ec2/aws-ec2-vpngateway.go +++ b/cloudformation/ec2/aws-ec2-vpngateway.go @@ -36,6 +36,9 @@ type VPNGateway struct { // 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 @@ -53,12 +56,14 @@ func (r VPNGateway) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -72,6 +77,7 @@ func (r *VPNGateway) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -95,5 +101,8 @@ func (r *VPNGateway) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/ec2/aws-ec2-vpngatewayroutepropagation.go b/cloudformation/ec2/aws-ec2-vpngatewayroutepropagation.go index 4cc4e26a39..8bfa0a5c84 100644 --- a/cloudformation/ec2/aws-ec2-vpngatewayroutepropagation.go +++ b/cloudformation/ec2/aws-ec2-vpngatewayroutepropagation.go @@ -30,6 +30,9 @@ type VPNGatewayRoutePropagation struct { // 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 @@ -47,12 +50,14 @@ func (r VPNGatewayRoutePropagation) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -66,6 +71,7 @@ func (r *VPNGatewayRoutePropagation) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -89,5 +95,8 @@ func (r *VPNGatewayRoutePropagation) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/ecr/aws-ecr-repository.go b/cloudformation/ecr/aws-ecr-repository.go index bdba652d28..a9f24e6e16 100644 --- a/cloudformation/ecr/aws-ecr-repository.go +++ b/cloudformation/ecr/aws-ecr-repository.go @@ -41,6 +41,9 @@ type Repository struct { // 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 @@ -58,12 +61,14 @@ func (r Repository) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -77,6 +82,7 @@ func (r *Repository) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -100,5 +106,8 @@ func (r *Repository) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/ecr/aws-ecr-repository_lifecyclepolicy.go b/cloudformation/ecr/aws-ecr-repository_lifecyclepolicy.go index aee122b8fe..826e07a9ce 100644 --- a/cloudformation/ecr/aws-ecr-repository_lifecyclepolicy.go +++ b/cloudformation/ecr/aws-ecr-repository_lifecyclepolicy.go @@ -26,6 +26,9 @@ type Repository_LifecyclePolicy struct { // 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 diff --git a/cloudformation/ecs/aws-ecs-cluster.go b/cloudformation/ecs/aws-ecs-cluster.go index b15e46c989..c9698330f6 100644 --- a/cloudformation/ecs/aws-ecs-cluster.go +++ b/cloudformation/ecs/aws-ecs-cluster.go @@ -36,6 +36,9 @@ type Cluster struct { // 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 @@ -53,12 +56,14 @@ func (r Cluster) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -72,6 +77,7 @@ func (r *Cluster) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -95,5 +101,8 @@ func (r *Cluster) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/ecs/aws-ecs-cluster_clustersetting.go b/cloudformation/ecs/aws-ecs-cluster_clustersetting.go index f739c37013..4934c4fffa 100644 --- a/cloudformation/ecs/aws-ecs-cluster_clustersetting.go +++ b/cloudformation/ecs/aws-ecs-cluster_clustersetting.go @@ -26,6 +26,9 @@ type Cluster_ClusterSetting struct { // 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 diff --git a/cloudformation/ecs/aws-ecs-primarytaskset.go b/cloudformation/ecs/aws-ecs-primarytaskset.go index a3b04cfdba..e413ec00b2 100644 --- a/cloudformation/ecs/aws-ecs-primarytaskset.go +++ b/cloudformation/ecs/aws-ecs-primarytaskset.go @@ -35,6 +35,9 @@ type PrimaryTaskSet struct { // 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 @@ -52,12 +55,14 @@ func (r PrimaryTaskSet) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -71,6 +76,7 @@ func (r *PrimaryTaskSet) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -94,5 +100,8 @@ func (r *PrimaryTaskSet) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/ecs/aws-ecs-service.go b/cloudformation/ecs/aws-ecs-service.go index 56f431d08a..25531531bc 100644 --- a/cloudformation/ecs/aws-ecs-service.go +++ b/cloudformation/ecs/aws-ecs-service.go @@ -116,6 +116,9 @@ type Service struct { // 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 @@ -133,12 +136,14 @@ func (r Service) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -152,6 +157,7 @@ func (r *Service) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -175,5 +181,8 @@ func (r *Service) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/ecs/aws-ecs-service_awsvpcconfiguration.go b/cloudformation/ecs/aws-ecs-service_awsvpcconfiguration.go index be23e04a80..bce8f7f78a 100644 --- a/cloudformation/ecs/aws-ecs-service_awsvpcconfiguration.go +++ b/cloudformation/ecs/aws-ecs-service_awsvpcconfiguration.go @@ -31,6 +31,9 @@ type Service_AwsVpcConfiguration struct { // 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 diff --git a/cloudformation/ecs/aws-ecs-service_deploymentconfiguration.go b/cloudformation/ecs/aws-ecs-service_deploymentconfiguration.go index 56c1f78297..3ac23673ef 100644 --- a/cloudformation/ecs/aws-ecs-service_deploymentconfiguration.go +++ b/cloudformation/ecs/aws-ecs-service_deploymentconfiguration.go @@ -26,6 +26,9 @@ type Service_DeploymentConfiguration struct { // 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 diff --git a/cloudformation/ecs/aws-ecs-service_deploymentcontroller.go b/cloudformation/ecs/aws-ecs-service_deploymentcontroller.go index 6253877818..266405d0ff 100644 --- a/cloudformation/ecs/aws-ecs-service_deploymentcontroller.go +++ b/cloudformation/ecs/aws-ecs-service_deploymentcontroller.go @@ -21,6 +21,9 @@ type Service_DeploymentController struct { // 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 diff --git a/cloudformation/ecs/aws-ecs-service_loadbalancer.go b/cloudformation/ecs/aws-ecs-service_loadbalancer.go index 40e1f4168e..ab54d9b2ac 100644 --- a/cloudformation/ecs/aws-ecs-service_loadbalancer.go +++ b/cloudformation/ecs/aws-ecs-service_loadbalancer.go @@ -36,6 +36,9 @@ type Service_LoadBalancer struct { // 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 diff --git a/cloudformation/ecs/aws-ecs-service_networkconfiguration.go b/cloudformation/ecs/aws-ecs-service_networkconfiguration.go index 3fa9e160bb..39a330b1a0 100644 --- a/cloudformation/ecs/aws-ecs-service_networkconfiguration.go +++ b/cloudformation/ecs/aws-ecs-service_networkconfiguration.go @@ -21,6 +21,9 @@ type Service_NetworkConfiguration struct { // 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 diff --git a/cloudformation/ecs/aws-ecs-service_placementconstraint.go b/cloudformation/ecs/aws-ecs-service_placementconstraint.go index 4434f8c225..0f41e1b179 100644 --- a/cloudformation/ecs/aws-ecs-service_placementconstraint.go +++ b/cloudformation/ecs/aws-ecs-service_placementconstraint.go @@ -26,6 +26,9 @@ type Service_PlacementConstraint struct { // 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 diff --git a/cloudformation/ecs/aws-ecs-service_placementstrategy.go b/cloudformation/ecs/aws-ecs-service_placementstrategy.go index 18f3124cee..069911bc0e 100644 --- a/cloudformation/ecs/aws-ecs-service_placementstrategy.go +++ b/cloudformation/ecs/aws-ecs-service_placementstrategy.go @@ -26,6 +26,9 @@ type Service_PlacementStrategy struct { // 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 diff --git a/cloudformation/ecs/aws-ecs-service_serviceregistry.go b/cloudformation/ecs/aws-ecs-service_serviceregistry.go index 02afbf9866..4d7247e152 100644 --- a/cloudformation/ecs/aws-ecs-service_serviceregistry.go +++ b/cloudformation/ecs/aws-ecs-service_serviceregistry.go @@ -36,6 +36,9 @@ type Service_ServiceRegistry struct { // 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 diff --git a/cloudformation/ecs/aws-ecs-taskdefinition.go b/cloudformation/ecs/aws-ecs-taskdefinition.go index 83a7a596a0..e811f41c0d 100644 --- a/cloudformation/ecs/aws-ecs-taskdefinition.go +++ b/cloudformation/ecs/aws-ecs-taskdefinition.go @@ -96,6 +96,9 @@ type TaskDefinition struct { // 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 @@ -113,12 +116,14 @@ func (r TaskDefinition) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -132,6 +137,7 @@ func (r *TaskDefinition) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -155,5 +161,8 @@ func (r *TaskDefinition) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/ecs/aws-ecs-taskdefinition_containerdefinition.go b/cloudformation/ecs/aws-ecs-taskdefinition_containerdefinition.go index e3285ee2bc..9b7be34547 100644 --- a/cloudformation/ecs/aws-ecs-taskdefinition_containerdefinition.go +++ b/cloudformation/ecs/aws-ecs-taskdefinition_containerdefinition.go @@ -206,6 +206,9 @@ type TaskDefinition_ContainerDefinition struct { // 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 diff --git a/cloudformation/ecs/aws-ecs-taskdefinition_containerdependency.go b/cloudformation/ecs/aws-ecs-taskdefinition_containerdependency.go index 356210124a..ae22ec9af4 100644 --- a/cloudformation/ecs/aws-ecs-taskdefinition_containerdependency.go +++ b/cloudformation/ecs/aws-ecs-taskdefinition_containerdependency.go @@ -26,6 +26,9 @@ type TaskDefinition_ContainerDependency struct { // 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 diff --git a/cloudformation/ecs/aws-ecs-taskdefinition_device.go b/cloudformation/ecs/aws-ecs-taskdefinition_device.go index a0662662a9..a0d281c211 100644 --- a/cloudformation/ecs/aws-ecs-taskdefinition_device.go +++ b/cloudformation/ecs/aws-ecs-taskdefinition_device.go @@ -31,6 +31,9 @@ type TaskDefinition_Device struct { // 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 diff --git a/cloudformation/ecs/aws-ecs-taskdefinition_dockervolumeconfiguration.go b/cloudformation/ecs/aws-ecs-taskdefinition_dockervolumeconfiguration.go index ad07bc5f3c..e9fddd169c 100644 --- a/cloudformation/ecs/aws-ecs-taskdefinition_dockervolumeconfiguration.go +++ b/cloudformation/ecs/aws-ecs-taskdefinition_dockervolumeconfiguration.go @@ -41,6 +41,9 @@ type TaskDefinition_DockerVolumeConfiguration struct { // 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 diff --git a/cloudformation/ecs/aws-ecs-taskdefinition_firelensconfiguration.go b/cloudformation/ecs/aws-ecs-taskdefinition_firelensconfiguration.go index c2887faf6d..53d661c353 100644 --- a/cloudformation/ecs/aws-ecs-taskdefinition_firelensconfiguration.go +++ b/cloudformation/ecs/aws-ecs-taskdefinition_firelensconfiguration.go @@ -26,6 +26,9 @@ type TaskDefinition_FirelensConfiguration struct { // 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 diff --git a/cloudformation/ecs/aws-ecs-taskdefinition_healthcheck.go b/cloudformation/ecs/aws-ecs-taskdefinition_healthcheck.go index 5d605e98e5..384042649d 100644 --- a/cloudformation/ecs/aws-ecs-taskdefinition_healthcheck.go +++ b/cloudformation/ecs/aws-ecs-taskdefinition_healthcheck.go @@ -41,6 +41,9 @@ type TaskDefinition_HealthCheck struct { // 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 diff --git a/cloudformation/ecs/aws-ecs-taskdefinition_hostentry.go b/cloudformation/ecs/aws-ecs-taskdefinition_hostentry.go index 8f823bc083..22a3b31fab 100644 --- a/cloudformation/ecs/aws-ecs-taskdefinition_hostentry.go +++ b/cloudformation/ecs/aws-ecs-taskdefinition_hostentry.go @@ -26,6 +26,9 @@ type TaskDefinition_HostEntry struct { // 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 diff --git a/cloudformation/ecs/aws-ecs-taskdefinition_hostvolumeproperties.go b/cloudformation/ecs/aws-ecs-taskdefinition_hostvolumeproperties.go index e7d151d24c..cc1566992c 100644 --- a/cloudformation/ecs/aws-ecs-taskdefinition_hostvolumeproperties.go +++ b/cloudformation/ecs/aws-ecs-taskdefinition_hostvolumeproperties.go @@ -21,6 +21,9 @@ type TaskDefinition_HostVolumeProperties struct { // 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 diff --git a/cloudformation/ecs/aws-ecs-taskdefinition_inferenceaccelerator.go b/cloudformation/ecs/aws-ecs-taskdefinition_inferenceaccelerator.go index fc29657315..7726a8e056 100644 --- a/cloudformation/ecs/aws-ecs-taskdefinition_inferenceaccelerator.go +++ b/cloudformation/ecs/aws-ecs-taskdefinition_inferenceaccelerator.go @@ -31,6 +31,9 @@ type TaskDefinition_InferenceAccelerator struct { // 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 diff --git a/cloudformation/ecs/aws-ecs-taskdefinition_kernelcapabilities.go b/cloudformation/ecs/aws-ecs-taskdefinition_kernelcapabilities.go index 81579cf4f6..e5f6a23b51 100644 --- a/cloudformation/ecs/aws-ecs-taskdefinition_kernelcapabilities.go +++ b/cloudformation/ecs/aws-ecs-taskdefinition_kernelcapabilities.go @@ -26,6 +26,9 @@ type TaskDefinition_KernelCapabilities struct { // 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 diff --git a/cloudformation/ecs/aws-ecs-taskdefinition_keyvaluepair.go b/cloudformation/ecs/aws-ecs-taskdefinition_keyvaluepair.go index e3121488fb..29f1277edf 100644 --- a/cloudformation/ecs/aws-ecs-taskdefinition_keyvaluepair.go +++ b/cloudformation/ecs/aws-ecs-taskdefinition_keyvaluepair.go @@ -26,6 +26,9 @@ type TaskDefinition_KeyValuePair struct { // 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 diff --git a/cloudformation/ecs/aws-ecs-taskdefinition_linuxparameters.go b/cloudformation/ecs/aws-ecs-taskdefinition_linuxparameters.go index 1f05735708..d346c82440 100644 --- a/cloudformation/ecs/aws-ecs-taskdefinition_linuxparameters.go +++ b/cloudformation/ecs/aws-ecs-taskdefinition_linuxparameters.go @@ -51,6 +51,9 @@ type TaskDefinition_LinuxParameters struct { // 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 diff --git a/cloudformation/ecs/aws-ecs-taskdefinition_logconfiguration.go b/cloudformation/ecs/aws-ecs-taskdefinition_logconfiguration.go index 6823e72712..f560a88ac1 100644 --- a/cloudformation/ecs/aws-ecs-taskdefinition_logconfiguration.go +++ b/cloudformation/ecs/aws-ecs-taskdefinition_logconfiguration.go @@ -31,6 +31,9 @@ type TaskDefinition_LogConfiguration struct { // 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 diff --git a/cloudformation/ecs/aws-ecs-taskdefinition_mountpoint.go b/cloudformation/ecs/aws-ecs-taskdefinition_mountpoint.go index dd8fd58afb..06880322fe 100644 --- a/cloudformation/ecs/aws-ecs-taskdefinition_mountpoint.go +++ b/cloudformation/ecs/aws-ecs-taskdefinition_mountpoint.go @@ -31,6 +31,9 @@ type TaskDefinition_MountPoint struct { // 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 diff --git a/cloudformation/ecs/aws-ecs-taskdefinition_portmapping.go b/cloudformation/ecs/aws-ecs-taskdefinition_portmapping.go index 0432894ecf..db26c1427b 100644 --- a/cloudformation/ecs/aws-ecs-taskdefinition_portmapping.go +++ b/cloudformation/ecs/aws-ecs-taskdefinition_portmapping.go @@ -31,6 +31,9 @@ type TaskDefinition_PortMapping struct { // 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 diff --git a/cloudformation/ecs/aws-ecs-taskdefinition_proxyconfiguration.go b/cloudformation/ecs/aws-ecs-taskdefinition_proxyconfiguration.go index 68ebaade7a..b0fecf155c 100644 --- a/cloudformation/ecs/aws-ecs-taskdefinition_proxyconfiguration.go +++ b/cloudformation/ecs/aws-ecs-taskdefinition_proxyconfiguration.go @@ -31,6 +31,9 @@ type TaskDefinition_ProxyConfiguration struct { // 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 diff --git a/cloudformation/ecs/aws-ecs-taskdefinition_repositorycredentials.go b/cloudformation/ecs/aws-ecs-taskdefinition_repositorycredentials.go index c1300656ca..e302373eff 100644 --- a/cloudformation/ecs/aws-ecs-taskdefinition_repositorycredentials.go +++ b/cloudformation/ecs/aws-ecs-taskdefinition_repositorycredentials.go @@ -21,6 +21,9 @@ type TaskDefinition_RepositoryCredentials struct { // 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 diff --git a/cloudformation/ecs/aws-ecs-taskdefinition_resourcerequirement.go b/cloudformation/ecs/aws-ecs-taskdefinition_resourcerequirement.go index b8a64badb2..0384ac5937 100644 --- a/cloudformation/ecs/aws-ecs-taskdefinition_resourcerequirement.go +++ b/cloudformation/ecs/aws-ecs-taskdefinition_resourcerequirement.go @@ -26,6 +26,9 @@ type TaskDefinition_ResourceRequirement struct { // 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 diff --git a/cloudformation/ecs/aws-ecs-taskdefinition_secret.go b/cloudformation/ecs/aws-ecs-taskdefinition_secret.go index 7f56aa4a47..cd1dfb48ee 100644 --- a/cloudformation/ecs/aws-ecs-taskdefinition_secret.go +++ b/cloudformation/ecs/aws-ecs-taskdefinition_secret.go @@ -26,6 +26,9 @@ type TaskDefinition_Secret struct { // 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 diff --git a/cloudformation/ecs/aws-ecs-taskdefinition_systemcontrol.go b/cloudformation/ecs/aws-ecs-taskdefinition_systemcontrol.go index 2862ca1970..2558175130 100644 --- a/cloudformation/ecs/aws-ecs-taskdefinition_systemcontrol.go +++ b/cloudformation/ecs/aws-ecs-taskdefinition_systemcontrol.go @@ -26,6 +26,9 @@ type TaskDefinition_SystemControl struct { // 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 diff --git a/cloudformation/ecs/aws-ecs-taskdefinition_taskdefinitionplacementconstraint.go b/cloudformation/ecs/aws-ecs-taskdefinition_taskdefinitionplacementconstraint.go index 9277d8f96c..94df216548 100644 --- a/cloudformation/ecs/aws-ecs-taskdefinition_taskdefinitionplacementconstraint.go +++ b/cloudformation/ecs/aws-ecs-taskdefinition_taskdefinitionplacementconstraint.go @@ -26,6 +26,9 @@ type TaskDefinition_TaskDefinitionPlacementConstraint struct { // 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 diff --git a/cloudformation/ecs/aws-ecs-taskdefinition_tmpfs.go b/cloudformation/ecs/aws-ecs-taskdefinition_tmpfs.go index d2e7b0bb97..966cdba961 100644 --- a/cloudformation/ecs/aws-ecs-taskdefinition_tmpfs.go +++ b/cloudformation/ecs/aws-ecs-taskdefinition_tmpfs.go @@ -31,6 +31,9 @@ type TaskDefinition_Tmpfs struct { // 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 diff --git a/cloudformation/ecs/aws-ecs-taskdefinition_ulimit.go b/cloudformation/ecs/aws-ecs-taskdefinition_ulimit.go index 12d6ee1926..c132c83b88 100644 --- a/cloudformation/ecs/aws-ecs-taskdefinition_ulimit.go +++ b/cloudformation/ecs/aws-ecs-taskdefinition_ulimit.go @@ -31,6 +31,9 @@ type TaskDefinition_Ulimit struct { // 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 diff --git a/cloudformation/ecs/aws-ecs-taskdefinition_volume.go b/cloudformation/ecs/aws-ecs-taskdefinition_volume.go index 080a1c7183..cdb35ae4e1 100644 --- a/cloudformation/ecs/aws-ecs-taskdefinition_volume.go +++ b/cloudformation/ecs/aws-ecs-taskdefinition_volume.go @@ -31,6 +31,9 @@ type TaskDefinition_Volume struct { // 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 diff --git a/cloudformation/ecs/aws-ecs-taskdefinition_volumefrom.go b/cloudformation/ecs/aws-ecs-taskdefinition_volumefrom.go index 74a3ba3440..0ff7623177 100644 --- a/cloudformation/ecs/aws-ecs-taskdefinition_volumefrom.go +++ b/cloudformation/ecs/aws-ecs-taskdefinition_volumefrom.go @@ -26,6 +26,9 @@ type TaskDefinition_VolumeFrom struct { // 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 diff --git a/cloudformation/ecs/aws-ecs-taskset.go b/cloudformation/ecs/aws-ecs-taskset.go index 1a7a8790bc..95950697ef 100644 --- a/cloudformation/ecs/aws-ecs-taskset.go +++ b/cloudformation/ecs/aws-ecs-taskset.go @@ -70,6 +70,9 @@ type TaskSet struct { // 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 @@ -87,12 +90,14 @@ func (r TaskSet) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -106,6 +111,7 @@ func (r *TaskSet) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -129,5 +135,8 @@ func (r *TaskSet) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/ecs/aws-ecs-taskset_awsvpcconfiguration.go b/cloudformation/ecs/aws-ecs-taskset_awsvpcconfiguration.go index b2bb60b4fb..97a33eca41 100644 --- a/cloudformation/ecs/aws-ecs-taskset_awsvpcconfiguration.go +++ b/cloudformation/ecs/aws-ecs-taskset_awsvpcconfiguration.go @@ -31,6 +31,9 @@ type TaskSet_AwsVpcConfiguration struct { // 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 diff --git a/cloudformation/ecs/aws-ecs-taskset_loadbalancer.go b/cloudformation/ecs/aws-ecs-taskset_loadbalancer.go index 4179f599ec..5c92b013ec 100644 --- a/cloudformation/ecs/aws-ecs-taskset_loadbalancer.go +++ b/cloudformation/ecs/aws-ecs-taskset_loadbalancer.go @@ -36,6 +36,9 @@ type TaskSet_LoadBalancer struct { // 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 diff --git a/cloudformation/ecs/aws-ecs-taskset_networkconfiguration.go b/cloudformation/ecs/aws-ecs-taskset_networkconfiguration.go index f0721bdb21..8b142e05e0 100644 --- a/cloudformation/ecs/aws-ecs-taskset_networkconfiguration.go +++ b/cloudformation/ecs/aws-ecs-taskset_networkconfiguration.go @@ -21,6 +21,9 @@ type TaskSet_NetworkConfiguration struct { // 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 diff --git a/cloudformation/ecs/aws-ecs-taskset_scale.go b/cloudformation/ecs/aws-ecs-taskset_scale.go index 9a1d7c64c8..c410e90158 100644 --- a/cloudformation/ecs/aws-ecs-taskset_scale.go +++ b/cloudformation/ecs/aws-ecs-taskset_scale.go @@ -26,6 +26,9 @@ type TaskSet_Scale struct { // 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 diff --git a/cloudformation/ecs/aws-ecs-taskset_serviceregistry.go b/cloudformation/ecs/aws-ecs-taskset_serviceregistry.go index fc1ecc16fa..2cc0dcecc2 100644 --- a/cloudformation/ecs/aws-ecs-taskset_serviceregistry.go +++ b/cloudformation/ecs/aws-ecs-taskset_serviceregistry.go @@ -36,6 +36,9 @@ type TaskSet_ServiceRegistry struct { // 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 diff --git a/cloudformation/efs/aws-efs-filesystem.go b/cloudformation/efs/aws-efs-filesystem.go index aa38daec35..c61cfaa808 100644 --- a/cloudformation/efs/aws-efs-filesystem.go +++ b/cloudformation/efs/aws-efs-filesystem.go @@ -55,6 +55,9 @@ type FileSystem struct { // 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 @@ -72,12 +75,14 @@ func (r FileSystem) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -91,6 +96,7 @@ func (r *FileSystem) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -114,5 +120,8 @@ func (r *FileSystem) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/efs/aws-efs-filesystem_elasticfilesystemtag.go b/cloudformation/efs/aws-efs-filesystem_elasticfilesystemtag.go index cfaf15e414..118ad1cc31 100644 --- a/cloudformation/efs/aws-efs-filesystem_elasticfilesystemtag.go +++ b/cloudformation/efs/aws-efs-filesystem_elasticfilesystemtag.go @@ -26,6 +26,9 @@ type FileSystem_ElasticFileSystemTag struct { // 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 diff --git a/cloudformation/efs/aws-efs-filesystem_lifecyclepolicy.go b/cloudformation/efs/aws-efs-filesystem_lifecyclepolicy.go index 054d75fcd8..d8fc143713 100644 --- a/cloudformation/efs/aws-efs-filesystem_lifecyclepolicy.go +++ b/cloudformation/efs/aws-efs-filesystem_lifecyclepolicy.go @@ -21,6 +21,9 @@ type FileSystem_LifecyclePolicy struct { // 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 diff --git a/cloudformation/efs/aws-efs-mounttarget.go b/cloudformation/efs/aws-efs-mounttarget.go index 02975842b4..eff31a479a 100644 --- a/cloudformation/efs/aws-efs-mounttarget.go +++ b/cloudformation/efs/aws-efs-mounttarget.go @@ -40,6 +40,9 @@ type MountTarget struct { // 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 @@ -57,12 +60,14 @@ func (r MountTarget) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -76,6 +81,7 @@ func (r *MountTarget) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -99,5 +105,8 @@ func (r *MountTarget) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/eks/aws-eks-cluster.go b/cloudformation/eks/aws-eks-cluster.go index ab5c7ae8a0..c302a57445 100644 --- a/cloudformation/eks/aws-eks-cluster.go +++ b/cloudformation/eks/aws-eks-cluster.go @@ -40,6 +40,9 @@ type Cluster struct { // 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 @@ -57,12 +60,14 @@ func (r Cluster) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -76,6 +81,7 @@ func (r *Cluster) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -99,5 +105,8 @@ func (r *Cluster) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/eks/aws-eks-cluster_resourcesvpcconfig.go b/cloudformation/eks/aws-eks-cluster_resourcesvpcconfig.go index ed838dc643..0508e82566 100644 --- a/cloudformation/eks/aws-eks-cluster_resourcesvpcconfig.go +++ b/cloudformation/eks/aws-eks-cluster_resourcesvpcconfig.go @@ -26,6 +26,9 @@ type Cluster_ResourcesVpcConfig struct { // 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 diff --git a/cloudformation/eks/aws-eks-nodegroup.go b/cloudformation/eks/aws-eks-nodegroup.go index c3fa14e8b4..54d17dfd28 100644 --- a/cloudformation/eks/aws-eks-nodegroup.go +++ b/cloudformation/eks/aws-eks-nodegroup.go @@ -90,6 +90,9 @@ type Nodegroup struct { // 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 @@ -107,12 +110,14 @@ func (r Nodegroup) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -126,6 +131,7 @@ func (r *Nodegroup) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -149,5 +155,8 @@ func (r *Nodegroup) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/eks/aws-eks-nodegroup_remoteaccess.go b/cloudformation/eks/aws-eks-nodegroup_remoteaccess.go index e8adb7fe57..b17345118c 100644 --- a/cloudformation/eks/aws-eks-nodegroup_remoteaccess.go +++ b/cloudformation/eks/aws-eks-nodegroup_remoteaccess.go @@ -26,6 +26,9 @@ type Nodegroup_RemoteAccess struct { // 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 diff --git a/cloudformation/eks/aws-eks-nodegroup_scalingconfig.go b/cloudformation/eks/aws-eks-nodegroup_scalingconfig.go index 7dc5d80c8c..c76f40e2f2 100644 --- a/cloudformation/eks/aws-eks-nodegroup_scalingconfig.go +++ b/cloudformation/eks/aws-eks-nodegroup_scalingconfig.go @@ -31,6 +31,9 @@ type Nodegroup_ScalingConfig struct { // 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 diff --git a/cloudformation/elasticache/aws-elasticache-cachecluster.go b/cloudformation/elasticache/aws-elasticache-cachecluster.go index 332ec876a6..0a4736764d 100644 --- a/cloudformation/elasticache/aws-elasticache-cachecluster.go +++ b/cloudformation/elasticache/aws-elasticache-cachecluster.go @@ -126,6 +126,9 @@ type CacheCluster struct { // 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 @@ -143,12 +146,14 @@ func (r CacheCluster) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -162,6 +167,7 @@ func (r *CacheCluster) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -185,5 +191,8 @@ func (r *CacheCluster) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/elasticache/aws-elasticache-parametergroup.go b/cloudformation/elasticache/aws-elasticache-parametergroup.go index 007497f2b4..8265e1e72a 100644 --- a/cloudformation/elasticache/aws-elasticache-parametergroup.go +++ b/cloudformation/elasticache/aws-elasticache-parametergroup.go @@ -35,6 +35,9 @@ type ParameterGroup struct { // 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 @@ -52,12 +55,14 @@ func (r ParameterGroup) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -71,6 +76,7 @@ func (r *ParameterGroup) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -94,5 +100,8 @@ func (r *ParameterGroup) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/elasticache/aws-elasticache-replicationgroup.go b/cloudformation/elasticache/aws-elasticache-replicationgroup.go index 61979135fe..f1dd92f0c8 100644 --- a/cloudformation/elasticache/aws-elasticache-replicationgroup.go +++ b/cloudformation/elasticache/aws-elasticache-replicationgroup.go @@ -171,6 +171,9 @@ type ReplicationGroup struct { // 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 @@ -188,12 +191,14 @@ func (r ReplicationGroup) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -207,6 +212,7 @@ func (r *ReplicationGroup) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -230,5 +236,8 @@ func (r *ReplicationGroup) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/elasticache/aws-elasticache-replicationgroup_nodegroupconfiguration.go b/cloudformation/elasticache/aws-elasticache-replicationgroup_nodegroupconfiguration.go index 6d2da746c9..47b1e341c7 100644 --- a/cloudformation/elasticache/aws-elasticache-replicationgroup_nodegroupconfiguration.go +++ b/cloudformation/elasticache/aws-elasticache-replicationgroup_nodegroupconfiguration.go @@ -41,6 +41,9 @@ type ReplicationGroup_NodeGroupConfiguration struct { // 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 diff --git a/cloudformation/elasticache/aws-elasticache-securitygroup.go b/cloudformation/elasticache/aws-elasticache-securitygroup.go index ad39d4223d..7f7a86a6b3 100644 --- a/cloudformation/elasticache/aws-elasticache-securitygroup.go +++ b/cloudformation/elasticache/aws-elasticache-securitygroup.go @@ -25,6 +25,9 @@ type SecurityGroup struct { // 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 @@ -42,12 +45,14 @@ func (r SecurityGroup) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -61,6 +66,7 @@ func (r *SecurityGroup) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -84,5 +90,8 @@ func (r *SecurityGroup) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/elasticache/aws-elasticache-securitygroupingress.go b/cloudformation/elasticache/aws-elasticache-securitygroupingress.go index bb8e92e418..56068e42e6 100644 --- a/cloudformation/elasticache/aws-elasticache-securitygroupingress.go +++ b/cloudformation/elasticache/aws-elasticache-securitygroupingress.go @@ -35,6 +35,9 @@ type SecurityGroupIngress struct { // 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 @@ -52,12 +55,14 @@ func (r SecurityGroupIngress) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -71,6 +76,7 @@ func (r *SecurityGroupIngress) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -94,5 +100,8 @@ func (r *SecurityGroupIngress) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/elasticache/aws-elasticache-subnetgroup.go b/cloudformation/elasticache/aws-elasticache-subnetgroup.go index b8b014326b..5b1f08a745 100644 --- a/cloudformation/elasticache/aws-elasticache-subnetgroup.go +++ b/cloudformation/elasticache/aws-elasticache-subnetgroup.go @@ -35,6 +35,9 @@ type SubnetGroup struct { // 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 @@ -52,12 +55,14 @@ func (r SubnetGroup) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -71,6 +76,7 @@ func (r *SubnetGroup) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -94,5 +100,8 @@ func (r *SubnetGroup) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/elasticbeanstalk/aws-elasticbeanstalk-application.go b/cloudformation/elasticbeanstalk/aws-elasticbeanstalk-application.go index 3e21491113..dc34f1cc6e 100644 --- a/cloudformation/elasticbeanstalk/aws-elasticbeanstalk-application.go +++ b/cloudformation/elasticbeanstalk/aws-elasticbeanstalk-application.go @@ -35,6 +35,9 @@ type Application struct { // 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 @@ -52,12 +55,14 @@ func (r Application) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -71,6 +76,7 @@ func (r *Application) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -94,5 +100,8 @@ func (r *Application) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/elasticbeanstalk/aws-elasticbeanstalk-application_applicationresourcelifecycleconfig.go b/cloudformation/elasticbeanstalk/aws-elasticbeanstalk-application_applicationresourcelifecycleconfig.go index 7be9aa0f35..ced2c36177 100644 --- a/cloudformation/elasticbeanstalk/aws-elasticbeanstalk-application_applicationresourcelifecycleconfig.go +++ b/cloudformation/elasticbeanstalk/aws-elasticbeanstalk-application_applicationresourcelifecycleconfig.go @@ -26,6 +26,9 @@ type Application_ApplicationResourceLifecycleConfig struct { // 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 diff --git a/cloudformation/elasticbeanstalk/aws-elasticbeanstalk-application_applicationversionlifecycleconfig.go b/cloudformation/elasticbeanstalk/aws-elasticbeanstalk-application_applicationversionlifecycleconfig.go index 031358688e..7bd7d7e702 100644 --- a/cloudformation/elasticbeanstalk/aws-elasticbeanstalk-application_applicationversionlifecycleconfig.go +++ b/cloudformation/elasticbeanstalk/aws-elasticbeanstalk-application_applicationversionlifecycleconfig.go @@ -26,6 +26,9 @@ type Application_ApplicationVersionLifecycleConfig struct { // 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 diff --git a/cloudformation/elasticbeanstalk/aws-elasticbeanstalk-application_maxagerule.go b/cloudformation/elasticbeanstalk/aws-elasticbeanstalk-application_maxagerule.go index 7bf7729646..aa6bf01fe6 100644 --- a/cloudformation/elasticbeanstalk/aws-elasticbeanstalk-application_maxagerule.go +++ b/cloudformation/elasticbeanstalk/aws-elasticbeanstalk-application_maxagerule.go @@ -31,6 +31,9 @@ type Application_MaxAgeRule struct { // 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 diff --git a/cloudformation/elasticbeanstalk/aws-elasticbeanstalk-application_maxcountrule.go b/cloudformation/elasticbeanstalk/aws-elasticbeanstalk-application_maxcountrule.go index 5be87730df..40ce53caf6 100644 --- a/cloudformation/elasticbeanstalk/aws-elasticbeanstalk-application_maxcountrule.go +++ b/cloudformation/elasticbeanstalk/aws-elasticbeanstalk-application_maxcountrule.go @@ -31,6 +31,9 @@ type Application_MaxCountRule struct { // 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 diff --git a/cloudformation/elasticbeanstalk/aws-elasticbeanstalk-applicationversion.go b/cloudformation/elasticbeanstalk/aws-elasticbeanstalk-applicationversion.go index e0aa2ed78e..dd99f8aa7b 100644 --- a/cloudformation/elasticbeanstalk/aws-elasticbeanstalk-applicationversion.go +++ b/cloudformation/elasticbeanstalk/aws-elasticbeanstalk-applicationversion.go @@ -35,6 +35,9 @@ type ApplicationVersion struct { // 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 @@ -52,12 +55,14 @@ func (r ApplicationVersion) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -71,6 +76,7 @@ func (r *ApplicationVersion) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -94,5 +100,8 @@ func (r *ApplicationVersion) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/elasticbeanstalk/aws-elasticbeanstalk-applicationversion_sourcebundle.go b/cloudformation/elasticbeanstalk/aws-elasticbeanstalk-applicationversion_sourcebundle.go index e4b6145b09..21942bf9c0 100644 --- a/cloudformation/elasticbeanstalk/aws-elasticbeanstalk-applicationversion_sourcebundle.go +++ b/cloudformation/elasticbeanstalk/aws-elasticbeanstalk-applicationversion_sourcebundle.go @@ -26,6 +26,9 @@ type ApplicationVersion_SourceBundle struct { // 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 diff --git a/cloudformation/elasticbeanstalk/aws-elasticbeanstalk-configurationtemplate.go b/cloudformation/elasticbeanstalk/aws-elasticbeanstalk-configurationtemplate.go index 70f5ba96fd..7ce927a82b 100644 --- a/cloudformation/elasticbeanstalk/aws-elasticbeanstalk-configurationtemplate.go +++ b/cloudformation/elasticbeanstalk/aws-elasticbeanstalk-configurationtemplate.go @@ -55,6 +55,9 @@ type ConfigurationTemplate struct { // 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 @@ -72,12 +75,14 @@ func (r ConfigurationTemplate) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -91,6 +96,7 @@ func (r *ConfigurationTemplate) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -114,5 +120,8 @@ func (r *ConfigurationTemplate) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/elasticbeanstalk/aws-elasticbeanstalk-configurationtemplate_configurationoptionsetting.go b/cloudformation/elasticbeanstalk/aws-elasticbeanstalk-configurationtemplate_configurationoptionsetting.go index a624fb2da9..635a3caa6f 100644 --- a/cloudformation/elasticbeanstalk/aws-elasticbeanstalk-configurationtemplate_configurationoptionsetting.go +++ b/cloudformation/elasticbeanstalk/aws-elasticbeanstalk-configurationtemplate_configurationoptionsetting.go @@ -36,6 +36,9 @@ type ConfigurationTemplate_ConfigurationOptionSetting struct { // 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 diff --git a/cloudformation/elasticbeanstalk/aws-elasticbeanstalk-configurationtemplate_sourceconfiguration.go b/cloudformation/elasticbeanstalk/aws-elasticbeanstalk-configurationtemplate_sourceconfiguration.go index a6fc44bd32..7caf1bfe23 100644 --- a/cloudformation/elasticbeanstalk/aws-elasticbeanstalk-configurationtemplate_sourceconfiguration.go +++ b/cloudformation/elasticbeanstalk/aws-elasticbeanstalk-configurationtemplate_sourceconfiguration.go @@ -26,6 +26,9 @@ type ConfigurationTemplate_SourceConfiguration struct { // 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 diff --git a/cloudformation/elasticbeanstalk/aws-elasticbeanstalk-environment.go b/cloudformation/elasticbeanstalk/aws-elasticbeanstalk-environment.go index 6c2f99acd6..87da51d109 100644 --- a/cloudformation/elasticbeanstalk/aws-elasticbeanstalk-environment.go +++ b/cloudformation/elasticbeanstalk/aws-elasticbeanstalk-environment.go @@ -76,6 +76,9 @@ type Environment struct { // 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 @@ -93,12 +96,14 @@ func (r Environment) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -112,6 +117,7 @@ func (r *Environment) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -135,5 +141,8 @@ func (r *Environment) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/elasticbeanstalk/aws-elasticbeanstalk-environment_optionsetting.go b/cloudformation/elasticbeanstalk/aws-elasticbeanstalk-environment_optionsetting.go index eae73c11dc..cb2852bed3 100644 --- a/cloudformation/elasticbeanstalk/aws-elasticbeanstalk-environment_optionsetting.go +++ b/cloudformation/elasticbeanstalk/aws-elasticbeanstalk-environment_optionsetting.go @@ -36,6 +36,9 @@ type Environment_OptionSetting struct { // 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 diff --git a/cloudformation/elasticbeanstalk/aws-elasticbeanstalk-environment_tier.go b/cloudformation/elasticbeanstalk/aws-elasticbeanstalk-environment_tier.go index bac430e432..a470b02eb3 100644 --- a/cloudformation/elasticbeanstalk/aws-elasticbeanstalk-environment_tier.go +++ b/cloudformation/elasticbeanstalk/aws-elasticbeanstalk-environment_tier.go @@ -31,6 +31,9 @@ type Environment_Tier struct { // 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 diff --git a/cloudformation/elasticloadbalancing/aws-elasticloadbalancing-loadbalancer.go b/cloudformation/elasticloadbalancing/aws-elasticloadbalancing-loadbalancer.go index d9445c0d69..6c8bee2957 100644 --- a/cloudformation/elasticloadbalancing/aws-elasticloadbalancing-loadbalancer.go +++ b/cloudformation/elasticloadbalancing/aws-elasticloadbalancing-loadbalancer.go @@ -101,6 +101,9 @@ type LoadBalancer struct { // 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 @@ -118,12 +121,14 @@ func (r LoadBalancer) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -137,6 +142,7 @@ func (r *LoadBalancer) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -160,5 +166,8 @@ func (r *LoadBalancer) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/elasticloadbalancing/aws-elasticloadbalancing-loadbalancer_accessloggingpolicy.go b/cloudformation/elasticloadbalancing/aws-elasticloadbalancing-loadbalancer_accessloggingpolicy.go index 16138339a5..998c15105a 100644 --- a/cloudformation/elasticloadbalancing/aws-elasticloadbalancing-loadbalancer_accessloggingpolicy.go +++ b/cloudformation/elasticloadbalancing/aws-elasticloadbalancing-loadbalancer_accessloggingpolicy.go @@ -36,6 +36,9 @@ type LoadBalancer_AccessLoggingPolicy struct { // 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 diff --git a/cloudformation/elasticloadbalancing/aws-elasticloadbalancing-loadbalancer_appcookiestickinesspolicy.go b/cloudformation/elasticloadbalancing/aws-elasticloadbalancing-loadbalancer_appcookiestickinesspolicy.go index 16565dfa59..4241b1ec10 100644 --- a/cloudformation/elasticloadbalancing/aws-elasticloadbalancing-loadbalancer_appcookiestickinesspolicy.go +++ b/cloudformation/elasticloadbalancing/aws-elasticloadbalancing-loadbalancer_appcookiestickinesspolicy.go @@ -26,6 +26,9 @@ type LoadBalancer_AppCookieStickinessPolicy struct { // 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 diff --git a/cloudformation/elasticloadbalancing/aws-elasticloadbalancing-loadbalancer_connectiondrainingpolicy.go b/cloudformation/elasticloadbalancing/aws-elasticloadbalancing-loadbalancer_connectiondrainingpolicy.go index 2d31023d13..c9ec904a57 100644 --- a/cloudformation/elasticloadbalancing/aws-elasticloadbalancing-loadbalancer_connectiondrainingpolicy.go +++ b/cloudformation/elasticloadbalancing/aws-elasticloadbalancing-loadbalancer_connectiondrainingpolicy.go @@ -26,6 +26,9 @@ type LoadBalancer_ConnectionDrainingPolicy struct { // 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 diff --git a/cloudformation/elasticloadbalancing/aws-elasticloadbalancing-loadbalancer_connectionsettings.go b/cloudformation/elasticloadbalancing/aws-elasticloadbalancing-loadbalancer_connectionsettings.go index 016bb6608c..65965bc461 100644 --- a/cloudformation/elasticloadbalancing/aws-elasticloadbalancing-loadbalancer_connectionsettings.go +++ b/cloudformation/elasticloadbalancing/aws-elasticloadbalancing-loadbalancer_connectionsettings.go @@ -21,6 +21,9 @@ type LoadBalancer_ConnectionSettings struct { // 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 diff --git a/cloudformation/elasticloadbalancing/aws-elasticloadbalancing-loadbalancer_healthcheck.go b/cloudformation/elasticloadbalancing/aws-elasticloadbalancing-loadbalancer_healthcheck.go index 6867739827..5e9d008e25 100644 --- a/cloudformation/elasticloadbalancing/aws-elasticloadbalancing-loadbalancer_healthcheck.go +++ b/cloudformation/elasticloadbalancing/aws-elasticloadbalancing-loadbalancer_healthcheck.go @@ -41,6 +41,9 @@ type LoadBalancer_HealthCheck struct { // 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 diff --git a/cloudformation/elasticloadbalancing/aws-elasticloadbalancing-loadbalancer_lbcookiestickinesspolicy.go b/cloudformation/elasticloadbalancing/aws-elasticloadbalancing-loadbalancer_lbcookiestickinesspolicy.go index 47d371478e..2d060a5f8c 100644 --- a/cloudformation/elasticloadbalancing/aws-elasticloadbalancing-loadbalancer_lbcookiestickinesspolicy.go +++ b/cloudformation/elasticloadbalancing/aws-elasticloadbalancing-loadbalancer_lbcookiestickinesspolicy.go @@ -26,6 +26,9 @@ type LoadBalancer_LBCookieStickinessPolicy struct { // 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 diff --git a/cloudformation/elasticloadbalancing/aws-elasticloadbalancing-loadbalancer_listeners.go b/cloudformation/elasticloadbalancing/aws-elasticloadbalancing-loadbalancer_listeners.go index 2c336011dd..8139c8172d 100644 --- a/cloudformation/elasticloadbalancing/aws-elasticloadbalancing-loadbalancer_listeners.go +++ b/cloudformation/elasticloadbalancing/aws-elasticloadbalancing-loadbalancer_listeners.go @@ -46,6 +46,9 @@ type LoadBalancer_Listeners struct { // 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 diff --git a/cloudformation/elasticloadbalancing/aws-elasticloadbalancing-loadbalancer_policies.go b/cloudformation/elasticloadbalancing/aws-elasticloadbalancing-loadbalancer_policies.go index d023541b87..20e96f4d9f 100644 --- a/cloudformation/elasticloadbalancing/aws-elasticloadbalancing-loadbalancer_policies.go +++ b/cloudformation/elasticloadbalancing/aws-elasticloadbalancing-loadbalancer_policies.go @@ -41,6 +41,9 @@ type LoadBalancer_Policies struct { // 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 diff --git a/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listener.go b/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listener.go index c40bfa656f..4f337ace14 100644 --- a/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listener.go +++ b/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listener.go @@ -50,6 +50,9 @@ type Listener struct { // 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 @@ -67,12 +70,14 @@ func (r Listener) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -86,6 +91,7 @@ func (r *Listener) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -109,5 +115,8 @@ func (r *Listener) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listener_action.go b/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listener_action.go index da782c955c..1fabe436ee 100644 --- a/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listener_action.go +++ b/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listener_action.go @@ -51,6 +51,9 @@ type Listener_Action struct { // 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 diff --git a/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listener_authenticatecognitoconfig.go b/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listener_authenticatecognitoconfig.go index acf5ec04e2..b0dbc7eebf 100644 --- a/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listener_authenticatecognitoconfig.go +++ b/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listener_authenticatecognitoconfig.go @@ -56,6 +56,9 @@ type Listener_AuthenticateCognitoConfig struct { // 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 diff --git a/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listener_authenticateoidcconfig.go b/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listener_authenticateoidcconfig.go index e4c03ad44e..d11b732711 100644 --- a/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listener_authenticateoidcconfig.go +++ b/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listener_authenticateoidcconfig.go @@ -71,6 +71,9 @@ type Listener_AuthenticateOidcConfig struct { // 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 diff --git a/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listener_certificate.go b/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listener_certificate.go index ed1dad69b6..9c667ba0da 100644 --- a/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listener_certificate.go +++ b/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listener_certificate.go @@ -21,6 +21,9 @@ type Listener_Certificate struct { // 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 diff --git a/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listener_fixedresponseconfig.go b/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listener_fixedresponseconfig.go index 485d58c8c3..a4d3eefe39 100644 --- a/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listener_fixedresponseconfig.go +++ b/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listener_fixedresponseconfig.go @@ -31,6 +31,9 @@ type Listener_FixedResponseConfig struct { // 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 diff --git a/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listener_redirectconfig.go b/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listener_redirectconfig.go index ce5dcba603..0a9e755a69 100644 --- a/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listener_redirectconfig.go +++ b/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listener_redirectconfig.go @@ -46,6 +46,9 @@ type Listener_RedirectConfig struct { // 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 diff --git a/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listenercertificate.go b/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listenercertificate.go index 702fca97b3..c85990d25e 100644 --- a/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listenercertificate.go +++ b/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listenercertificate.go @@ -30,6 +30,9 @@ type ListenerCertificate struct { // 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 @@ -47,12 +50,14 @@ func (r ListenerCertificate) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -66,6 +71,7 @@ func (r *ListenerCertificate) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -89,5 +95,8 @@ func (r *ListenerCertificate) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listenercertificate_certificate.go b/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listenercertificate_certificate.go index d206a74061..3e84e6d20f 100644 --- a/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listenercertificate_certificate.go +++ b/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listenercertificate_certificate.go @@ -21,6 +21,9 @@ type ListenerCertificate_Certificate struct { // 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 diff --git a/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listenerrule.go b/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listenerrule.go index 273ad7a983..42420ccd18 100644 --- a/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listenerrule.go +++ b/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listenerrule.go @@ -40,6 +40,9 @@ type ListenerRule struct { // 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 @@ -57,12 +60,14 @@ func (r ListenerRule) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -76,6 +81,7 @@ func (r *ListenerRule) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -99,5 +105,8 @@ func (r *ListenerRule) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listenerrule_action.go b/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listenerrule_action.go index a5fee61a2a..b5641bcafa 100644 --- a/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listenerrule_action.go +++ b/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listenerrule_action.go @@ -51,6 +51,9 @@ type ListenerRule_Action struct { // 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 diff --git a/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listenerrule_authenticatecognitoconfig.go b/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listenerrule_authenticatecognitoconfig.go index 8775ab91a5..41674b9c68 100644 --- a/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listenerrule_authenticatecognitoconfig.go +++ b/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listenerrule_authenticatecognitoconfig.go @@ -56,6 +56,9 @@ type ListenerRule_AuthenticateCognitoConfig struct { // 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 diff --git a/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listenerrule_authenticateoidcconfig.go b/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listenerrule_authenticateoidcconfig.go index 233a7aad46..f13ae557aa 100644 --- a/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listenerrule_authenticateoidcconfig.go +++ b/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listenerrule_authenticateoidcconfig.go @@ -71,6 +71,9 @@ type ListenerRule_AuthenticateOidcConfig struct { // 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 diff --git a/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listenerrule_fixedresponseconfig.go b/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listenerrule_fixedresponseconfig.go index eadee87de5..68f21fde74 100644 --- a/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listenerrule_fixedresponseconfig.go +++ b/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listenerrule_fixedresponseconfig.go @@ -31,6 +31,9 @@ type ListenerRule_FixedResponseConfig struct { // 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 diff --git a/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listenerrule_hostheaderconfig.go b/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listenerrule_hostheaderconfig.go index d75966b565..51e002cb5d 100644 --- a/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listenerrule_hostheaderconfig.go +++ b/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listenerrule_hostheaderconfig.go @@ -21,6 +21,9 @@ type ListenerRule_HostHeaderConfig struct { // 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 diff --git a/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listenerrule_httpheaderconfig.go b/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listenerrule_httpheaderconfig.go index 6b1200c75b..1e469bacae 100644 --- a/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listenerrule_httpheaderconfig.go +++ b/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listenerrule_httpheaderconfig.go @@ -26,6 +26,9 @@ type ListenerRule_HttpHeaderConfig struct { // 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 diff --git a/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listenerrule_httprequestmethodconfig.go b/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listenerrule_httprequestmethodconfig.go index da9c4bb4f4..9d84ed4fb1 100644 --- a/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listenerrule_httprequestmethodconfig.go +++ b/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listenerrule_httprequestmethodconfig.go @@ -21,6 +21,9 @@ type ListenerRule_HttpRequestMethodConfig struct { // 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 diff --git a/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listenerrule_pathpatternconfig.go b/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listenerrule_pathpatternconfig.go index 0d235d4b82..308d03941c 100644 --- a/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listenerrule_pathpatternconfig.go +++ b/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listenerrule_pathpatternconfig.go @@ -21,6 +21,9 @@ type ListenerRule_PathPatternConfig struct { // 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 diff --git a/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listenerrule_querystringconfig.go b/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listenerrule_querystringconfig.go index 462f296bfd..14ee30f2de 100644 --- a/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listenerrule_querystringconfig.go +++ b/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listenerrule_querystringconfig.go @@ -21,6 +21,9 @@ type ListenerRule_QueryStringConfig struct { // 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 diff --git a/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listenerrule_querystringkeyvalue.go b/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listenerrule_querystringkeyvalue.go index 14a37a40f7..cace901584 100644 --- a/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listenerrule_querystringkeyvalue.go +++ b/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listenerrule_querystringkeyvalue.go @@ -26,6 +26,9 @@ type ListenerRule_QueryStringKeyValue struct { // 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 diff --git a/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listenerrule_redirectconfig.go b/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listenerrule_redirectconfig.go index c4fc3600f5..5d3c5a03a5 100644 --- a/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listenerrule_redirectconfig.go +++ b/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listenerrule_redirectconfig.go @@ -46,6 +46,9 @@ type ListenerRule_RedirectConfig struct { // 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 diff --git a/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listenerrule_rulecondition.go b/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listenerrule_rulecondition.go index b36ad50d1e..64d3143479 100644 --- a/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listenerrule_rulecondition.go +++ b/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listenerrule_rulecondition.go @@ -56,6 +56,9 @@ type ListenerRule_RuleCondition struct { // 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 diff --git a/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listenerrule_sourceipconfig.go b/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listenerrule_sourceipconfig.go index 2cf5783475..0db6093579 100644 --- a/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listenerrule_sourceipconfig.go +++ b/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-listenerrule_sourceipconfig.go @@ -21,6 +21,9 @@ type ListenerRule_SourceIpConfig struct { // 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 diff --git a/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-loadbalancer.go b/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-loadbalancer.go index b914851547..b200788224 100644 --- a/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-loadbalancer.go +++ b/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-loadbalancer.go @@ -66,6 +66,9 @@ type LoadBalancer struct { // 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 @@ -83,12 +86,14 @@ func (r LoadBalancer) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -102,6 +107,7 @@ func (r *LoadBalancer) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -125,5 +131,8 @@ func (r *LoadBalancer) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-loadbalancer_loadbalancerattribute.go b/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-loadbalancer_loadbalancerattribute.go index d6114d3f57..867cdcf6df 100644 --- a/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-loadbalancer_loadbalancerattribute.go +++ b/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-loadbalancer_loadbalancerattribute.go @@ -26,6 +26,9 @@ type LoadBalancer_LoadBalancerAttribute struct { // 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 diff --git a/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-loadbalancer_subnetmapping.go b/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-loadbalancer_subnetmapping.go index e0df4f7dd5..07fdf37681 100644 --- a/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-loadbalancer_subnetmapping.go +++ b/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-loadbalancer_subnetmapping.go @@ -26,6 +26,9 @@ type LoadBalancer_SubnetMapping struct { // 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 diff --git a/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-targetgroup.go b/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-targetgroup.go index dc637c627e..149d8b48d8 100644 --- a/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-targetgroup.go +++ b/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-targetgroup.go @@ -106,6 +106,9 @@ type TargetGroup struct { // 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 @@ -123,12 +126,14 @@ func (r TargetGroup) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -142,6 +147,7 @@ func (r *TargetGroup) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -165,5 +171,8 @@ func (r *TargetGroup) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-targetgroup_matcher.go b/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-targetgroup_matcher.go index ebc2594b88..d6b56e2082 100644 --- a/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-targetgroup_matcher.go +++ b/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-targetgroup_matcher.go @@ -21,6 +21,9 @@ type TargetGroup_Matcher struct { // 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 diff --git a/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-targetgroup_targetdescription.go b/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-targetgroup_targetdescription.go index c3143910e3..8674615160 100644 --- a/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-targetgroup_targetdescription.go +++ b/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-targetgroup_targetdescription.go @@ -31,6 +31,9 @@ type TargetGroup_TargetDescription struct { // 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 diff --git a/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-targetgroup_targetgroupattribute.go b/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-targetgroup_targetgroupattribute.go index 8e33c50a37..398e8d83cd 100644 --- a/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-targetgroup_targetgroupattribute.go +++ b/cloudformation/elasticloadbalancingv2/aws-elasticloadbalancingv2-targetgroup_targetgroupattribute.go @@ -26,6 +26,9 @@ type TargetGroup_TargetGroupAttribute struct { // 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 diff --git a/cloudformation/elasticsearch/aws-elasticsearch-domain.go b/cloudformation/elasticsearch/aws-elasticsearch-domain.go index 690d9ab4c9..fbc30de1af 100644 --- a/cloudformation/elasticsearch/aws-elasticsearch-domain.go +++ b/cloudformation/elasticsearch/aws-elasticsearch-domain.go @@ -86,6 +86,9 @@ type Domain struct { // 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 @@ -103,12 +106,14 @@ func (r Domain) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -122,6 +127,7 @@ func (r *Domain) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -145,5 +151,8 @@ func (r *Domain) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/elasticsearch/aws-elasticsearch-domain_cognitooptions.go b/cloudformation/elasticsearch/aws-elasticsearch-domain_cognitooptions.go index cd732ded0a..3c7570d061 100644 --- a/cloudformation/elasticsearch/aws-elasticsearch-domain_cognitooptions.go +++ b/cloudformation/elasticsearch/aws-elasticsearch-domain_cognitooptions.go @@ -36,6 +36,9 @@ type Domain_CognitoOptions struct { // 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 diff --git a/cloudformation/elasticsearch/aws-elasticsearch-domain_ebsoptions.go b/cloudformation/elasticsearch/aws-elasticsearch-domain_ebsoptions.go index 8bedf7fd6a..aa43e84c55 100644 --- a/cloudformation/elasticsearch/aws-elasticsearch-domain_ebsoptions.go +++ b/cloudformation/elasticsearch/aws-elasticsearch-domain_ebsoptions.go @@ -36,6 +36,9 @@ type Domain_EBSOptions struct { // 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 diff --git a/cloudformation/elasticsearch/aws-elasticsearch-domain_elasticsearchclusterconfig.go b/cloudformation/elasticsearch/aws-elasticsearch-domain_elasticsearchclusterconfig.go index 0d197ce387..36e8077d70 100644 --- a/cloudformation/elasticsearch/aws-elasticsearch-domain_elasticsearchclusterconfig.go +++ b/cloudformation/elasticsearch/aws-elasticsearch-domain_elasticsearchclusterconfig.go @@ -51,6 +51,9 @@ type Domain_ElasticsearchClusterConfig struct { // 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 diff --git a/cloudformation/elasticsearch/aws-elasticsearch-domain_encryptionatrestoptions.go b/cloudformation/elasticsearch/aws-elasticsearch-domain_encryptionatrestoptions.go index e37b9c053c..a0a65549f0 100644 --- a/cloudformation/elasticsearch/aws-elasticsearch-domain_encryptionatrestoptions.go +++ b/cloudformation/elasticsearch/aws-elasticsearch-domain_encryptionatrestoptions.go @@ -26,6 +26,9 @@ type Domain_EncryptionAtRestOptions struct { // 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 diff --git a/cloudformation/elasticsearch/aws-elasticsearch-domain_logpublishingoption.go b/cloudformation/elasticsearch/aws-elasticsearch-domain_logpublishingoption.go index 9654d85ea7..4e349ac654 100644 --- a/cloudformation/elasticsearch/aws-elasticsearch-domain_logpublishingoption.go +++ b/cloudformation/elasticsearch/aws-elasticsearch-domain_logpublishingoption.go @@ -26,6 +26,9 @@ type Domain_LogPublishingOption struct { // 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 diff --git a/cloudformation/elasticsearch/aws-elasticsearch-domain_nodetonodeencryptionoptions.go b/cloudformation/elasticsearch/aws-elasticsearch-domain_nodetonodeencryptionoptions.go index 4af8abb773..9a5bcf2038 100644 --- a/cloudformation/elasticsearch/aws-elasticsearch-domain_nodetonodeencryptionoptions.go +++ b/cloudformation/elasticsearch/aws-elasticsearch-domain_nodetonodeencryptionoptions.go @@ -21,6 +21,9 @@ type Domain_NodeToNodeEncryptionOptions struct { // 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 diff --git a/cloudformation/elasticsearch/aws-elasticsearch-domain_snapshotoptions.go b/cloudformation/elasticsearch/aws-elasticsearch-domain_snapshotoptions.go index 5246972fe2..720697d1d6 100644 --- a/cloudformation/elasticsearch/aws-elasticsearch-domain_snapshotoptions.go +++ b/cloudformation/elasticsearch/aws-elasticsearch-domain_snapshotoptions.go @@ -21,6 +21,9 @@ type Domain_SnapshotOptions struct { // 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 diff --git a/cloudformation/elasticsearch/aws-elasticsearch-domain_vpcoptions.go b/cloudformation/elasticsearch/aws-elasticsearch-domain_vpcoptions.go index dd8e24bbf1..1c2ed8df99 100644 --- a/cloudformation/elasticsearch/aws-elasticsearch-domain_vpcoptions.go +++ b/cloudformation/elasticsearch/aws-elasticsearch-domain_vpcoptions.go @@ -26,6 +26,9 @@ type Domain_VPCOptions struct { // 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 diff --git a/cloudformation/elasticsearch/aws-elasticsearch-domain_zoneawarenessconfig.go b/cloudformation/elasticsearch/aws-elasticsearch-domain_zoneawarenessconfig.go index 29f3b8c4e2..a647bbc82e 100644 --- a/cloudformation/elasticsearch/aws-elasticsearch-domain_zoneawarenessconfig.go +++ b/cloudformation/elasticsearch/aws-elasticsearch-domain_zoneawarenessconfig.go @@ -21,6 +21,9 @@ type Domain_ZoneAwarenessConfig struct { // 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 diff --git a/cloudformation/emr/aws-emr-cluster.go b/cloudformation/emr/aws-emr-cluster.go index ca5e9aff37..33bb231ac7 100644 --- a/cloudformation/emr/aws-emr-cluster.go +++ b/cloudformation/emr/aws-emr-cluster.go @@ -116,6 +116,9 @@ type Cluster struct { // 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 @@ -133,12 +136,14 @@ func (r Cluster) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -152,6 +157,7 @@ func (r *Cluster) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -175,5 +181,8 @@ func (r *Cluster) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/emr/aws-emr-cluster_application.go b/cloudformation/emr/aws-emr-cluster_application.go index a09d904f12..82c1dc8261 100644 --- a/cloudformation/emr/aws-emr-cluster_application.go +++ b/cloudformation/emr/aws-emr-cluster_application.go @@ -36,6 +36,9 @@ type Cluster_Application struct { // 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 diff --git a/cloudformation/emr/aws-emr-cluster_autoscalingpolicy.go b/cloudformation/emr/aws-emr-cluster_autoscalingpolicy.go index a8f6413990..0373d35a35 100644 --- a/cloudformation/emr/aws-emr-cluster_autoscalingpolicy.go +++ b/cloudformation/emr/aws-emr-cluster_autoscalingpolicy.go @@ -26,6 +26,9 @@ type Cluster_AutoScalingPolicy struct { // 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 diff --git a/cloudformation/emr/aws-emr-cluster_bootstrapactionconfig.go b/cloudformation/emr/aws-emr-cluster_bootstrapactionconfig.go index 082ffb840a..e8b9f19be5 100644 --- a/cloudformation/emr/aws-emr-cluster_bootstrapactionconfig.go +++ b/cloudformation/emr/aws-emr-cluster_bootstrapactionconfig.go @@ -26,6 +26,9 @@ type Cluster_BootstrapActionConfig struct { // 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 diff --git a/cloudformation/emr/aws-emr-cluster_cloudwatchalarmdefinition.go b/cloudformation/emr/aws-emr-cluster_cloudwatchalarmdefinition.go index a0fe17f372..3055e6705a 100644 --- a/cloudformation/emr/aws-emr-cluster_cloudwatchalarmdefinition.go +++ b/cloudformation/emr/aws-emr-cluster_cloudwatchalarmdefinition.go @@ -61,6 +61,9 @@ type Cluster_CloudWatchAlarmDefinition struct { // 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 diff --git a/cloudformation/emr/aws-emr-cluster_configuration.go b/cloudformation/emr/aws-emr-cluster_configuration.go index 6431bc5b39..e15f2e7617 100644 --- a/cloudformation/emr/aws-emr-cluster_configuration.go +++ b/cloudformation/emr/aws-emr-cluster_configuration.go @@ -31,6 +31,9 @@ type Cluster_Configuration struct { // 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 diff --git a/cloudformation/emr/aws-emr-cluster_ebsblockdeviceconfig.go b/cloudformation/emr/aws-emr-cluster_ebsblockdeviceconfig.go index e487f9995b..9404c86909 100644 --- a/cloudformation/emr/aws-emr-cluster_ebsblockdeviceconfig.go +++ b/cloudformation/emr/aws-emr-cluster_ebsblockdeviceconfig.go @@ -26,6 +26,9 @@ type Cluster_EbsBlockDeviceConfig struct { // 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 diff --git a/cloudformation/emr/aws-emr-cluster_ebsconfiguration.go b/cloudformation/emr/aws-emr-cluster_ebsconfiguration.go index 51a1d17518..3551d73756 100644 --- a/cloudformation/emr/aws-emr-cluster_ebsconfiguration.go +++ b/cloudformation/emr/aws-emr-cluster_ebsconfiguration.go @@ -26,6 +26,9 @@ type Cluster_EbsConfiguration struct { // 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 diff --git a/cloudformation/emr/aws-emr-cluster_hadoopjarstepconfig.go b/cloudformation/emr/aws-emr-cluster_hadoopjarstepconfig.go index add815349e..3f84b7d059 100644 --- a/cloudformation/emr/aws-emr-cluster_hadoopjarstepconfig.go +++ b/cloudformation/emr/aws-emr-cluster_hadoopjarstepconfig.go @@ -36,6 +36,9 @@ type Cluster_HadoopJarStepConfig struct { // 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 diff --git a/cloudformation/emr/aws-emr-cluster_instancefleetconfig.go b/cloudformation/emr/aws-emr-cluster_instancefleetconfig.go index aa1adf0944..f3c99beccf 100644 --- a/cloudformation/emr/aws-emr-cluster_instancefleetconfig.go +++ b/cloudformation/emr/aws-emr-cluster_instancefleetconfig.go @@ -41,6 +41,9 @@ type Cluster_InstanceFleetConfig struct { // 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 diff --git a/cloudformation/emr/aws-emr-cluster_instancefleetprovisioningspecifications.go b/cloudformation/emr/aws-emr-cluster_instancefleetprovisioningspecifications.go index 61f681cc92..2b00398257 100644 --- a/cloudformation/emr/aws-emr-cluster_instancefleetprovisioningspecifications.go +++ b/cloudformation/emr/aws-emr-cluster_instancefleetprovisioningspecifications.go @@ -21,6 +21,9 @@ type Cluster_InstanceFleetProvisioningSpecifications struct { // 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 diff --git a/cloudformation/emr/aws-emr-cluster_instancegroupconfig.go b/cloudformation/emr/aws-emr-cluster_instancegroupconfig.go index 3643108577..3b142a6ad3 100644 --- a/cloudformation/emr/aws-emr-cluster_instancegroupconfig.go +++ b/cloudformation/emr/aws-emr-cluster_instancegroupconfig.go @@ -56,6 +56,9 @@ type Cluster_InstanceGroupConfig struct { // 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 diff --git a/cloudformation/emr/aws-emr-cluster_instancetypeconfig.go b/cloudformation/emr/aws-emr-cluster_instancetypeconfig.go index a7d9435438..a55e36a13d 100644 --- a/cloudformation/emr/aws-emr-cluster_instancetypeconfig.go +++ b/cloudformation/emr/aws-emr-cluster_instancetypeconfig.go @@ -46,6 +46,9 @@ type Cluster_InstanceTypeConfig struct { // 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 diff --git a/cloudformation/emr/aws-emr-cluster_jobflowinstancesconfig.go b/cloudformation/emr/aws-emr-cluster_jobflowinstancesconfig.go index ee0fab2c5e..950ca24581 100644 --- a/cloudformation/emr/aws-emr-cluster_jobflowinstancesconfig.go +++ b/cloudformation/emr/aws-emr-cluster_jobflowinstancesconfig.go @@ -96,6 +96,9 @@ type Cluster_JobFlowInstancesConfig struct { // 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 diff --git a/cloudformation/emr/aws-emr-cluster_kerberosattributes.go b/cloudformation/emr/aws-emr-cluster_kerberosattributes.go index a53cb3b469..8721e48e43 100644 --- a/cloudformation/emr/aws-emr-cluster_kerberosattributes.go +++ b/cloudformation/emr/aws-emr-cluster_kerberosattributes.go @@ -41,6 +41,9 @@ type Cluster_KerberosAttributes struct { // 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 diff --git a/cloudformation/emr/aws-emr-cluster_keyvalue.go b/cloudformation/emr/aws-emr-cluster_keyvalue.go index 661fe7d95c..33400ab93c 100644 --- a/cloudformation/emr/aws-emr-cluster_keyvalue.go +++ b/cloudformation/emr/aws-emr-cluster_keyvalue.go @@ -26,6 +26,9 @@ type Cluster_KeyValue struct { // 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 diff --git a/cloudformation/emr/aws-emr-cluster_metricdimension.go b/cloudformation/emr/aws-emr-cluster_metricdimension.go index bf857e5acf..7ca88b9229 100644 --- a/cloudformation/emr/aws-emr-cluster_metricdimension.go +++ b/cloudformation/emr/aws-emr-cluster_metricdimension.go @@ -26,6 +26,9 @@ type Cluster_MetricDimension struct { // 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 diff --git a/cloudformation/emr/aws-emr-cluster_placementtype.go b/cloudformation/emr/aws-emr-cluster_placementtype.go index 160c81d2d1..2fdf7774ca 100644 --- a/cloudformation/emr/aws-emr-cluster_placementtype.go +++ b/cloudformation/emr/aws-emr-cluster_placementtype.go @@ -21,6 +21,9 @@ type Cluster_PlacementType struct { // 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 diff --git a/cloudformation/emr/aws-emr-cluster_scalingaction.go b/cloudformation/emr/aws-emr-cluster_scalingaction.go index 1f2b6232eb..4c2e807a90 100644 --- a/cloudformation/emr/aws-emr-cluster_scalingaction.go +++ b/cloudformation/emr/aws-emr-cluster_scalingaction.go @@ -26,6 +26,9 @@ type Cluster_ScalingAction struct { // 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 diff --git a/cloudformation/emr/aws-emr-cluster_scalingconstraints.go b/cloudformation/emr/aws-emr-cluster_scalingconstraints.go index 457b058069..ab0334da8b 100644 --- a/cloudformation/emr/aws-emr-cluster_scalingconstraints.go +++ b/cloudformation/emr/aws-emr-cluster_scalingconstraints.go @@ -26,6 +26,9 @@ type Cluster_ScalingConstraints struct { // 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 diff --git a/cloudformation/emr/aws-emr-cluster_scalingrule.go b/cloudformation/emr/aws-emr-cluster_scalingrule.go index f0ebf10247..6274385611 100644 --- a/cloudformation/emr/aws-emr-cluster_scalingrule.go +++ b/cloudformation/emr/aws-emr-cluster_scalingrule.go @@ -36,6 +36,9 @@ type Cluster_ScalingRule struct { // 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 diff --git a/cloudformation/emr/aws-emr-cluster_scalingtrigger.go b/cloudformation/emr/aws-emr-cluster_scalingtrigger.go index cd4571333b..3ffea93042 100644 --- a/cloudformation/emr/aws-emr-cluster_scalingtrigger.go +++ b/cloudformation/emr/aws-emr-cluster_scalingtrigger.go @@ -21,6 +21,9 @@ type Cluster_ScalingTrigger struct { // 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 diff --git a/cloudformation/emr/aws-emr-cluster_scriptbootstrapactionconfig.go b/cloudformation/emr/aws-emr-cluster_scriptbootstrapactionconfig.go index 608b3a78b5..c5f2acff03 100644 --- a/cloudformation/emr/aws-emr-cluster_scriptbootstrapactionconfig.go +++ b/cloudformation/emr/aws-emr-cluster_scriptbootstrapactionconfig.go @@ -26,6 +26,9 @@ type Cluster_ScriptBootstrapActionConfig struct { // 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 diff --git a/cloudformation/emr/aws-emr-cluster_simplescalingpolicyconfiguration.go b/cloudformation/emr/aws-emr-cluster_simplescalingpolicyconfiguration.go index ae40317465..f8e2a2d26a 100644 --- a/cloudformation/emr/aws-emr-cluster_simplescalingpolicyconfiguration.go +++ b/cloudformation/emr/aws-emr-cluster_simplescalingpolicyconfiguration.go @@ -31,6 +31,9 @@ type Cluster_SimpleScalingPolicyConfiguration struct { // 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 diff --git a/cloudformation/emr/aws-emr-cluster_spotprovisioningspecification.go b/cloudformation/emr/aws-emr-cluster_spotprovisioningspecification.go index 997b40ad86..74438f7adf 100644 --- a/cloudformation/emr/aws-emr-cluster_spotprovisioningspecification.go +++ b/cloudformation/emr/aws-emr-cluster_spotprovisioningspecification.go @@ -31,6 +31,9 @@ type Cluster_SpotProvisioningSpecification struct { // 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 diff --git a/cloudformation/emr/aws-emr-cluster_stepconfig.go b/cloudformation/emr/aws-emr-cluster_stepconfig.go index ba69821304..0d0dd14e75 100644 --- a/cloudformation/emr/aws-emr-cluster_stepconfig.go +++ b/cloudformation/emr/aws-emr-cluster_stepconfig.go @@ -31,6 +31,9 @@ type Cluster_StepConfig struct { // 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 diff --git a/cloudformation/emr/aws-emr-cluster_volumespecification.go b/cloudformation/emr/aws-emr-cluster_volumespecification.go index d8b854b45d..6d3a8720e8 100644 --- a/cloudformation/emr/aws-emr-cluster_volumespecification.go +++ b/cloudformation/emr/aws-emr-cluster_volumespecification.go @@ -31,6 +31,9 @@ type Cluster_VolumeSpecification struct { // 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 diff --git a/cloudformation/emr/aws-emr-instancefleetconfig.go b/cloudformation/emr/aws-emr-instancefleetconfig.go index 85c82a4658..5f3ea0cba5 100644 --- a/cloudformation/emr/aws-emr-instancefleetconfig.go +++ b/cloudformation/emr/aws-emr-instancefleetconfig.go @@ -55,6 +55,9 @@ type InstanceFleetConfig struct { // 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 @@ -72,12 +75,14 @@ func (r InstanceFleetConfig) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -91,6 +96,7 @@ func (r *InstanceFleetConfig) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -114,5 +120,8 @@ func (r *InstanceFleetConfig) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/emr/aws-emr-instancefleetconfig_configuration.go b/cloudformation/emr/aws-emr-instancefleetconfig_configuration.go index c73c95d1e1..1b24a67264 100644 --- a/cloudformation/emr/aws-emr-instancefleetconfig_configuration.go +++ b/cloudformation/emr/aws-emr-instancefleetconfig_configuration.go @@ -31,6 +31,9 @@ type InstanceFleetConfig_Configuration struct { // 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 diff --git a/cloudformation/emr/aws-emr-instancefleetconfig_ebsblockdeviceconfig.go b/cloudformation/emr/aws-emr-instancefleetconfig_ebsblockdeviceconfig.go index 4b1a20b963..37ab4c3164 100644 --- a/cloudformation/emr/aws-emr-instancefleetconfig_ebsblockdeviceconfig.go +++ b/cloudformation/emr/aws-emr-instancefleetconfig_ebsblockdeviceconfig.go @@ -26,6 +26,9 @@ type InstanceFleetConfig_EbsBlockDeviceConfig struct { // 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 diff --git a/cloudformation/emr/aws-emr-instancefleetconfig_ebsconfiguration.go b/cloudformation/emr/aws-emr-instancefleetconfig_ebsconfiguration.go index 03a06b25df..61b555917b 100644 --- a/cloudformation/emr/aws-emr-instancefleetconfig_ebsconfiguration.go +++ b/cloudformation/emr/aws-emr-instancefleetconfig_ebsconfiguration.go @@ -26,6 +26,9 @@ type InstanceFleetConfig_EbsConfiguration struct { // 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 diff --git a/cloudformation/emr/aws-emr-instancefleetconfig_instancefleetprovisioningspecifications.go b/cloudformation/emr/aws-emr-instancefleetconfig_instancefleetprovisioningspecifications.go index d22e691f6d..364f8c2851 100644 --- a/cloudformation/emr/aws-emr-instancefleetconfig_instancefleetprovisioningspecifications.go +++ b/cloudformation/emr/aws-emr-instancefleetconfig_instancefleetprovisioningspecifications.go @@ -21,6 +21,9 @@ type InstanceFleetConfig_InstanceFleetProvisioningSpecifications struct { // 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 diff --git a/cloudformation/emr/aws-emr-instancefleetconfig_instancetypeconfig.go b/cloudformation/emr/aws-emr-instancefleetconfig_instancetypeconfig.go index d358d62c86..fae2fb9d56 100644 --- a/cloudformation/emr/aws-emr-instancefleetconfig_instancetypeconfig.go +++ b/cloudformation/emr/aws-emr-instancefleetconfig_instancetypeconfig.go @@ -46,6 +46,9 @@ type InstanceFleetConfig_InstanceTypeConfig struct { // 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 diff --git a/cloudformation/emr/aws-emr-instancefleetconfig_spotprovisioningspecification.go b/cloudformation/emr/aws-emr-instancefleetconfig_spotprovisioningspecification.go index dedac5d873..72c6511ce6 100644 --- a/cloudformation/emr/aws-emr-instancefleetconfig_spotprovisioningspecification.go +++ b/cloudformation/emr/aws-emr-instancefleetconfig_spotprovisioningspecification.go @@ -31,6 +31,9 @@ type InstanceFleetConfig_SpotProvisioningSpecification struct { // 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 diff --git a/cloudformation/emr/aws-emr-instancefleetconfig_volumespecification.go b/cloudformation/emr/aws-emr-instancefleetconfig_volumespecification.go index e819e0fa7a..a663b37f86 100644 --- a/cloudformation/emr/aws-emr-instancefleetconfig_volumespecification.go +++ b/cloudformation/emr/aws-emr-instancefleetconfig_volumespecification.go @@ -31,6 +31,9 @@ type InstanceFleetConfig_VolumeSpecification struct { // 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 diff --git a/cloudformation/emr/aws-emr-instancegroupconfig.go b/cloudformation/emr/aws-emr-instancegroupconfig.go index 429d13166c..8a1c54e408 100644 --- a/cloudformation/emr/aws-emr-instancegroupconfig.go +++ b/cloudformation/emr/aws-emr-instancegroupconfig.go @@ -70,6 +70,9 @@ type InstanceGroupConfig struct { // 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 @@ -87,12 +90,14 @@ func (r InstanceGroupConfig) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -106,6 +111,7 @@ func (r *InstanceGroupConfig) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -129,5 +135,8 @@ func (r *InstanceGroupConfig) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/emr/aws-emr-instancegroupconfig_autoscalingpolicy.go b/cloudformation/emr/aws-emr-instancegroupconfig_autoscalingpolicy.go index ca014ff8e8..5d652341e1 100644 --- a/cloudformation/emr/aws-emr-instancegroupconfig_autoscalingpolicy.go +++ b/cloudformation/emr/aws-emr-instancegroupconfig_autoscalingpolicy.go @@ -26,6 +26,9 @@ type InstanceGroupConfig_AutoScalingPolicy struct { // 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 diff --git a/cloudformation/emr/aws-emr-instancegroupconfig_cloudwatchalarmdefinition.go b/cloudformation/emr/aws-emr-instancegroupconfig_cloudwatchalarmdefinition.go index cdd0d470ba..3548d5c41b 100644 --- a/cloudformation/emr/aws-emr-instancegroupconfig_cloudwatchalarmdefinition.go +++ b/cloudformation/emr/aws-emr-instancegroupconfig_cloudwatchalarmdefinition.go @@ -61,6 +61,9 @@ type InstanceGroupConfig_CloudWatchAlarmDefinition struct { // 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 diff --git a/cloudformation/emr/aws-emr-instancegroupconfig_configuration.go b/cloudformation/emr/aws-emr-instancegroupconfig_configuration.go index 0ad552ad69..1791f36f1f 100644 --- a/cloudformation/emr/aws-emr-instancegroupconfig_configuration.go +++ b/cloudformation/emr/aws-emr-instancegroupconfig_configuration.go @@ -31,6 +31,9 @@ type InstanceGroupConfig_Configuration struct { // 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 diff --git a/cloudformation/emr/aws-emr-instancegroupconfig_ebsblockdeviceconfig.go b/cloudformation/emr/aws-emr-instancegroupconfig_ebsblockdeviceconfig.go index 1f3486a126..904aba3563 100644 --- a/cloudformation/emr/aws-emr-instancegroupconfig_ebsblockdeviceconfig.go +++ b/cloudformation/emr/aws-emr-instancegroupconfig_ebsblockdeviceconfig.go @@ -26,6 +26,9 @@ type InstanceGroupConfig_EbsBlockDeviceConfig struct { // 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 diff --git a/cloudformation/emr/aws-emr-instancegroupconfig_ebsconfiguration.go b/cloudformation/emr/aws-emr-instancegroupconfig_ebsconfiguration.go index 15775d51bd..f297f8fc3d 100644 --- a/cloudformation/emr/aws-emr-instancegroupconfig_ebsconfiguration.go +++ b/cloudformation/emr/aws-emr-instancegroupconfig_ebsconfiguration.go @@ -26,6 +26,9 @@ type InstanceGroupConfig_EbsConfiguration struct { // 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 diff --git a/cloudformation/emr/aws-emr-instancegroupconfig_metricdimension.go b/cloudformation/emr/aws-emr-instancegroupconfig_metricdimension.go index 095000ceb1..11d6287cfa 100644 --- a/cloudformation/emr/aws-emr-instancegroupconfig_metricdimension.go +++ b/cloudformation/emr/aws-emr-instancegroupconfig_metricdimension.go @@ -26,6 +26,9 @@ type InstanceGroupConfig_MetricDimension struct { // 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 diff --git a/cloudformation/emr/aws-emr-instancegroupconfig_scalingaction.go b/cloudformation/emr/aws-emr-instancegroupconfig_scalingaction.go index 00e83749b1..8dae0bfed8 100644 --- a/cloudformation/emr/aws-emr-instancegroupconfig_scalingaction.go +++ b/cloudformation/emr/aws-emr-instancegroupconfig_scalingaction.go @@ -26,6 +26,9 @@ type InstanceGroupConfig_ScalingAction struct { // 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 diff --git a/cloudformation/emr/aws-emr-instancegroupconfig_scalingconstraints.go b/cloudformation/emr/aws-emr-instancegroupconfig_scalingconstraints.go index 53c81965e5..0d0130c94e 100644 --- a/cloudformation/emr/aws-emr-instancegroupconfig_scalingconstraints.go +++ b/cloudformation/emr/aws-emr-instancegroupconfig_scalingconstraints.go @@ -26,6 +26,9 @@ type InstanceGroupConfig_ScalingConstraints struct { // 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 diff --git a/cloudformation/emr/aws-emr-instancegroupconfig_scalingrule.go b/cloudformation/emr/aws-emr-instancegroupconfig_scalingrule.go index 61bc4cd83e..80ca74eeee 100644 --- a/cloudformation/emr/aws-emr-instancegroupconfig_scalingrule.go +++ b/cloudformation/emr/aws-emr-instancegroupconfig_scalingrule.go @@ -36,6 +36,9 @@ type InstanceGroupConfig_ScalingRule struct { // 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 diff --git a/cloudformation/emr/aws-emr-instancegroupconfig_scalingtrigger.go b/cloudformation/emr/aws-emr-instancegroupconfig_scalingtrigger.go index 6ce6ff4ff0..b04fb8b41a 100644 --- a/cloudformation/emr/aws-emr-instancegroupconfig_scalingtrigger.go +++ b/cloudformation/emr/aws-emr-instancegroupconfig_scalingtrigger.go @@ -21,6 +21,9 @@ type InstanceGroupConfig_ScalingTrigger struct { // 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 diff --git a/cloudformation/emr/aws-emr-instancegroupconfig_simplescalingpolicyconfiguration.go b/cloudformation/emr/aws-emr-instancegroupconfig_simplescalingpolicyconfiguration.go index 27ff709c17..9d6fa2479c 100644 --- a/cloudformation/emr/aws-emr-instancegroupconfig_simplescalingpolicyconfiguration.go +++ b/cloudformation/emr/aws-emr-instancegroupconfig_simplescalingpolicyconfiguration.go @@ -31,6 +31,9 @@ type InstanceGroupConfig_SimpleScalingPolicyConfiguration struct { // 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 diff --git a/cloudformation/emr/aws-emr-instancegroupconfig_volumespecification.go b/cloudformation/emr/aws-emr-instancegroupconfig_volumespecification.go index 5744fbcae8..2444a5a449 100644 --- a/cloudformation/emr/aws-emr-instancegroupconfig_volumespecification.go +++ b/cloudformation/emr/aws-emr-instancegroupconfig_volumespecification.go @@ -31,6 +31,9 @@ type InstanceGroupConfig_VolumeSpecification struct { // 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 diff --git a/cloudformation/emr/aws-emr-securityconfiguration.go b/cloudformation/emr/aws-emr-securityconfiguration.go index 9a2201017d..95ac18af00 100644 --- a/cloudformation/emr/aws-emr-securityconfiguration.go +++ b/cloudformation/emr/aws-emr-securityconfiguration.go @@ -30,6 +30,9 @@ type SecurityConfiguration struct { // 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 @@ -47,12 +50,14 @@ func (r SecurityConfiguration) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -66,6 +71,7 @@ func (r *SecurityConfiguration) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -89,5 +95,8 @@ func (r *SecurityConfiguration) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/emr/aws-emr-step.go b/cloudformation/emr/aws-emr-step.go index 51b34e8a1d..ddc93a2685 100644 --- a/cloudformation/emr/aws-emr-step.go +++ b/cloudformation/emr/aws-emr-step.go @@ -40,6 +40,9 @@ type Step struct { // 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 @@ -57,12 +60,14 @@ func (r Step) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -76,6 +81,7 @@ func (r *Step) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -99,5 +105,8 @@ func (r *Step) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/emr/aws-emr-step_hadoopjarstepconfig.go b/cloudformation/emr/aws-emr-step_hadoopjarstepconfig.go index 921377c863..f404867b94 100644 --- a/cloudformation/emr/aws-emr-step_hadoopjarstepconfig.go +++ b/cloudformation/emr/aws-emr-step_hadoopjarstepconfig.go @@ -36,6 +36,9 @@ type Step_HadoopJarStepConfig struct { // 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 diff --git a/cloudformation/emr/aws-emr-step_keyvalue.go b/cloudformation/emr/aws-emr-step_keyvalue.go index ffada820e7..7372da53aa 100644 --- a/cloudformation/emr/aws-emr-step_keyvalue.go +++ b/cloudformation/emr/aws-emr-step_keyvalue.go @@ -26,6 +26,9 @@ type Step_KeyValue struct { // 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 diff --git a/cloudformation/events/aws-events-eventbus.go b/cloudformation/events/aws-events-eventbus.go index 6ab633a6cc..ee67a41a05 100644 --- a/cloudformation/events/aws-events-eventbus.go +++ b/cloudformation/events/aws-events-eventbus.go @@ -30,6 +30,9 @@ type EventBus struct { // 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 @@ -47,12 +50,14 @@ func (r EventBus) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -66,6 +71,7 @@ func (r *EventBus) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -89,5 +95,8 @@ func (r *EventBus) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/events/aws-events-eventbuspolicy.go b/cloudformation/events/aws-events-eventbuspolicy.go index 58f188f65c..fd3758a9dc 100644 --- a/cloudformation/events/aws-events-eventbuspolicy.go +++ b/cloudformation/events/aws-events-eventbuspolicy.go @@ -45,6 +45,9 @@ type EventBusPolicy struct { // 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 @@ -62,12 +65,14 @@ func (r EventBusPolicy) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -81,6 +86,7 @@ func (r *EventBusPolicy) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -104,5 +110,8 @@ func (r *EventBusPolicy) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/events/aws-events-eventbuspolicy_condition.go b/cloudformation/events/aws-events-eventbuspolicy_condition.go index 94179554e8..b165cb7b00 100644 --- a/cloudformation/events/aws-events-eventbuspolicy_condition.go +++ b/cloudformation/events/aws-events-eventbuspolicy_condition.go @@ -31,6 +31,9 @@ type EventBusPolicy_Condition struct { // 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 diff --git a/cloudformation/events/aws-events-rule.go b/cloudformation/events/aws-events-rule.go index f5fe7d2920..e6fdcc6407 100644 --- a/cloudformation/events/aws-events-rule.go +++ b/cloudformation/events/aws-events-rule.go @@ -60,6 +60,9 @@ type Rule struct { // 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 @@ -77,12 +80,14 @@ func (r Rule) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -96,6 +101,7 @@ func (r *Rule) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -119,5 +125,8 @@ func (r *Rule) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/events/aws-events-rule_awsvpcconfiguration.go b/cloudformation/events/aws-events-rule_awsvpcconfiguration.go index da192bd773..374a77dc96 100644 --- a/cloudformation/events/aws-events-rule_awsvpcconfiguration.go +++ b/cloudformation/events/aws-events-rule_awsvpcconfiguration.go @@ -31,6 +31,9 @@ type Rule_AwsVpcConfiguration struct { // 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 diff --git a/cloudformation/events/aws-events-rule_batcharrayproperties.go b/cloudformation/events/aws-events-rule_batcharrayproperties.go index 8b45e92734..636a6a1a5d 100644 --- a/cloudformation/events/aws-events-rule_batcharrayproperties.go +++ b/cloudformation/events/aws-events-rule_batcharrayproperties.go @@ -21,6 +21,9 @@ type Rule_BatchArrayProperties struct { // 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 diff --git a/cloudformation/events/aws-events-rule_batchparameters.go b/cloudformation/events/aws-events-rule_batchparameters.go index b2372fc919..885ea8f10d 100644 --- a/cloudformation/events/aws-events-rule_batchparameters.go +++ b/cloudformation/events/aws-events-rule_batchparameters.go @@ -36,6 +36,9 @@ type Rule_BatchParameters struct { // 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 diff --git a/cloudformation/events/aws-events-rule_batchretrystrategy.go b/cloudformation/events/aws-events-rule_batchretrystrategy.go index 9f32b6c62c..6fb1adb9c0 100644 --- a/cloudformation/events/aws-events-rule_batchretrystrategy.go +++ b/cloudformation/events/aws-events-rule_batchretrystrategy.go @@ -21,6 +21,9 @@ type Rule_BatchRetryStrategy struct { // 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 diff --git a/cloudformation/events/aws-events-rule_ecsparameters.go b/cloudformation/events/aws-events-rule_ecsparameters.go index 06c66c80df..de12260244 100644 --- a/cloudformation/events/aws-events-rule_ecsparameters.go +++ b/cloudformation/events/aws-events-rule_ecsparameters.go @@ -46,6 +46,9 @@ type Rule_EcsParameters struct { // 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 diff --git a/cloudformation/events/aws-events-rule_inputtransformer.go b/cloudformation/events/aws-events-rule_inputtransformer.go index 958e119226..752d8bfa38 100644 --- a/cloudformation/events/aws-events-rule_inputtransformer.go +++ b/cloudformation/events/aws-events-rule_inputtransformer.go @@ -26,6 +26,9 @@ type Rule_InputTransformer struct { // 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 diff --git a/cloudformation/events/aws-events-rule_kinesisparameters.go b/cloudformation/events/aws-events-rule_kinesisparameters.go index 69eec1b2ea..d04a2b49c7 100644 --- a/cloudformation/events/aws-events-rule_kinesisparameters.go +++ b/cloudformation/events/aws-events-rule_kinesisparameters.go @@ -21,6 +21,9 @@ type Rule_KinesisParameters struct { // 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 diff --git a/cloudformation/events/aws-events-rule_networkconfiguration.go b/cloudformation/events/aws-events-rule_networkconfiguration.go index c865ecafa2..31a123cc22 100644 --- a/cloudformation/events/aws-events-rule_networkconfiguration.go +++ b/cloudformation/events/aws-events-rule_networkconfiguration.go @@ -21,6 +21,9 @@ type Rule_NetworkConfiguration struct { // 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 diff --git a/cloudformation/events/aws-events-rule_runcommandparameters.go b/cloudformation/events/aws-events-rule_runcommandparameters.go index 2666f7a209..01625ab8bd 100644 --- a/cloudformation/events/aws-events-rule_runcommandparameters.go +++ b/cloudformation/events/aws-events-rule_runcommandparameters.go @@ -21,6 +21,9 @@ type Rule_RunCommandParameters struct { // 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 diff --git a/cloudformation/events/aws-events-rule_runcommandtarget.go b/cloudformation/events/aws-events-rule_runcommandtarget.go index 91d59f2a59..02652525d2 100644 --- a/cloudformation/events/aws-events-rule_runcommandtarget.go +++ b/cloudformation/events/aws-events-rule_runcommandtarget.go @@ -26,6 +26,9 @@ type Rule_RunCommandTarget struct { // 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 diff --git a/cloudformation/events/aws-events-rule_sqsparameters.go b/cloudformation/events/aws-events-rule_sqsparameters.go index 98309c91ef..b21cac0c04 100644 --- a/cloudformation/events/aws-events-rule_sqsparameters.go +++ b/cloudformation/events/aws-events-rule_sqsparameters.go @@ -21,6 +21,9 @@ type Rule_SqsParameters struct { // 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 diff --git a/cloudformation/events/aws-events-rule_target.go b/cloudformation/events/aws-events-rule_target.go index 4a204d8236..b1cff32e0c 100644 --- a/cloudformation/events/aws-events-rule_target.go +++ b/cloudformation/events/aws-events-rule_target.go @@ -71,6 +71,9 @@ type Rule_Target struct { // 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 diff --git a/cloudformation/eventschemas/aws-eventschemas-discoverer.go b/cloudformation/eventschemas/aws-eventschemas-discoverer.go index 2ae774f4d4..b0b3cd4406 100644 --- a/cloudformation/eventschemas/aws-eventschemas-discoverer.go +++ b/cloudformation/eventschemas/aws-eventschemas-discoverer.go @@ -35,6 +35,9 @@ type Discoverer struct { // 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 @@ -52,12 +55,14 @@ func (r Discoverer) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -71,6 +76,7 @@ func (r *Discoverer) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -94,5 +100,8 @@ func (r *Discoverer) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/eventschemas/aws-eventschemas-discoverer_tagsentry.go b/cloudformation/eventschemas/aws-eventschemas-discoverer_tagsentry.go index d8ce98a5d5..ad7546056c 100644 --- a/cloudformation/eventschemas/aws-eventschemas-discoverer_tagsentry.go +++ b/cloudformation/eventschemas/aws-eventschemas-discoverer_tagsentry.go @@ -26,6 +26,9 @@ type Discoverer_TagsEntry struct { // 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 diff --git a/cloudformation/eventschemas/aws-eventschemas-registry.go b/cloudformation/eventschemas/aws-eventschemas-registry.go index 851f80a800..89f41ac5cc 100644 --- a/cloudformation/eventschemas/aws-eventschemas-registry.go +++ b/cloudformation/eventschemas/aws-eventschemas-registry.go @@ -35,6 +35,9 @@ type Registry struct { // 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 @@ -52,12 +55,14 @@ func (r Registry) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -71,6 +76,7 @@ func (r *Registry) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -94,5 +100,8 @@ func (r *Registry) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/eventschemas/aws-eventschemas-registry_tagsentry.go b/cloudformation/eventschemas/aws-eventschemas-registry_tagsentry.go index 11e0c0f142..c27f54cb96 100644 --- a/cloudformation/eventschemas/aws-eventschemas-registry_tagsentry.go +++ b/cloudformation/eventschemas/aws-eventschemas-registry_tagsentry.go @@ -26,6 +26,9 @@ type Registry_TagsEntry struct { // 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 diff --git a/cloudformation/eventschemas/aws-eventschemas-schema.go b/cloudformation/eventschemas/aws-eventschemas-schema.go index 037b2749e7..d4dca34df6 100644 --- a/cloudformation/eventschemas/aws-eventschemas-schema.go +++ b/cloudformation/eventschemas/aws-eventschemas-schema.go @@ -50,6 +50,9 @@ type Schema struct { // 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 @@ -67,12 +70,14 @@ func (r Schema) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -86,6 +91,7 @@ func (r *Schema) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -109,5 +115,8 @@ func (r *Schema) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/eventschemas/aws-eventschemas-schema_tagsentry.go b/cloudformation/eventschemas/aws-eventschemas-schema_tagsentry.go index b080ddde3c..005948ad9d 100644 --- a/cloudformation/eventschemas/aws-eventschemas-schema_tagsentry.go +++ b/cloudformation/eventschemas/aws-eventschemas-schema_tagsentry.go @@ -26,6 +26,9 @@ type Schema_TagsEntry struct { // 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 diff --git a/cloudformation/fsx/aws-fsx-filesystem.go b/cloudformation/fsx/aws-fsx-filesystem.go index 1a64e0b03a..4bd0290640 100644 --- a/cloudformation/fsx/aws-fsx-filesystem.go +++ b/cloudformation/fsx/aws-fsx-filesystem.go @@ -66,6 +66,9 @@ type FileSystem struct { // 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 @@ -83,12 +86,14 @@ func (r FileSystem) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -102,6 +107,7 @@ func (r *FileSystem) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -125,5 +131,8 @@ func (r *FileSystem) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/fsx/aws-fsx-filesystem_lustreconfiguration.go b/cloudformation/fsx/aws-fsx-filesystem_lustreconfiguration.go index 687c8e5661..d78ffb69de 100644 --- a/cloudformation/fsx/aws-fsx-filesystem_lustreconfiguration.go +++ b/cloudformation/fsx/aws-fsx-filesystem_lustreconfiguration.go @@ -36,6 +36,9 @@ type FileSystem_LustreConfiguration struct { // 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 diff --git a/cloudformation/fsx/aws-fsx-filesystem_selfmanagedactivedirectoryconfiguration.go b/cloudformation/fsx/aws-fsx-filesystem_selfmanagedactivedirectoryconfiguration.go index 15485da201..66d25a5328 100644 --- a/cloudformation/fsx/aws-fsx-filesystem_selfmanagedactivedirectoryconfiguration.go +++ b/cloudformation/fsx/aws-fsx-filesystem_selfmanagedactivedirectoryconfiguration.go @@ -46,6 +46,9 @@ type FileSystem_SelfManagedActiveDirectoryConfiguration struct { // 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 diff --git a/cloudformation/fsx/aws-fsx-filesystem_windowsconfiguration.go b/cloudformation/fsx/aws-fsx-filesystem_windowsconfiguration.go index a55711281e..c7d2321af8 100644 --- a/cloudformation/fsx/aws-fsx-filesystem_windowsconfiguration.go +++ b/cloudformation/fsx/aws-fsx-filesystem_windowsconfiguration.go @@ -61,6 +61,9 @@ type FileSystem_WindowsConfiguration struct { // 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 diff --git a/cloudformation/gamelift/aws-gamelift-alias.go b/cloudformation/gamelift/aws-gamelift-alias.go index e6e939c900..23a6550729 100644 --- a/cloudformation/gamelift/aws-gamelift-alias.go +++ b/cloudformation/gamelift/aws-gamelift-alias.go @@ -35,6 +35,9 @@ type Alias struct { // 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 @@ -52,12 +55,14 @@ func (r Alias) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -71,6 +76,7 @@ func (r *Alias) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -94,5 +100,8 @@ func (r *Alias) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/gamelift/aws-gamelift-alias_routingstrategy.go b/cloudformation/gamelift/aws-gamelift-alias_routingstrategy.go index bc5e3cb3d9..dda41f178b 100644 --- a/cloudformation/gamelift/aws-gamelift-alias_routingstrategy.go +++ b/cloudformation/gamelift/aws-gamelift-alias_routingstrategy.go @@ -31,6 +31,9 @@ type Alias_RoutingStrategy struct { // 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 diff --git a/cloudformation/gamelift/aws-gamelift-build.go b/cloudformation/gamelift/aws-gamelift-build.go index 5010fba3e2..6bf4c32d2e 100644 --- a/cloudformation/gamelift/aws-gamelift-build.go +++ b/cloudformation/gamelift/aws-gamelift-build.go @@ -40,6 +40,9 @@ type Build struct { // 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 @@ -57,12 +60,14 @@ func (r Build) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -76,6 +81,7 @@ func (r *Build) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -99,5 +105,8 @@ func (r *Build) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/gamelift/aws-gamelift-build_s3location.go b/cloudformation/gamelift/aws-gamelift-build_s3location.go index 659f9553f3..74f7d43441 100644 --- a/cloudformation/gamelift/aws-gamelift-build_s3location.go +++ b/cloudformation/gamelift/aws-gamelift-build_s3location.go @@ -36,6 +36,9 @@ type Build_S3Location struct { // 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 diff --git a/cloudformation/gamelift/aws-gamelift-fleet.go b/cloudformation/gamelift/aws-gamelift-fleet.go index c5708a16a6..c708719d9f 100644 --- a/cloudformation/gamelift/aws-gamelift-fleet.go +++ b/cloudformation/gamelift/aws-gamelift-fleet.go @@ -125,6 +125,9 @@ type Fleet struct { // 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 @@ -142,12 +145,14 @@ func (r Fleet) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -161,6 +166,7 @@ func (r *Fleet) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -184,5 +190,8 @@ func (r *Fleet) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/gamelift/aws-gamelift-fleet_certificateconfiguration.go b/cloudformation/gamelift/aws-gamelift-fleet_certificateconfiguration.go index 08dc3eacf4..efb1b8cf66 100644 --- a/cloudformation/gamelift/aws-gamelift-fleet_certificateconfiguration.go +++ b/cloudformation/gamelift/aws-gamelift-fleet_certificateconfiguration.go @@ -21,6 +21,9 @@ type Fleet_CertificateConfiguration struct { // 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 diff --git a/cloudformation/gamelift/aws-gamelift-fleet_ippermission.go b/cloudformation/gamelift/aws-gamelift-fleet_ippermission.go index 8bf67ff8e2..e0443295fe 100644 --- a/cloudformation/gamelift/aws-gamelift-fleet_ippermission.go +++ b/cloudformation/gamelift/aws-gamelift-fleet_ippermission.go @@ -36,6 +36,9 @@ type Fleet_IpPermission struct { // 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 diff --git a/cloudformation/gamelift/aws-gamelift-fleet_resourcecreationlimitpolicy.go b/cloudformation/gamelift/aws-gamelift-fleet_resourcecreationlimitpolicy.go index 0f258abe70..6350affacc 100644 --- a/cloudformation/gamelift/aws-gamelift-fleet_resourcecreationlimitpolicy.go +++ b/cloudformation/gamelift/aws-gamelift-fleet_resourcecreationlimitpolicy.go @@ -26,6 +26,9 @@ type Fleet_ResourceCreationLimitPolicy struct { // 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 diff --git a/cloudformation/gamelift/aws-gamelift-fleet_runtimeconfiguration.go b/cloudformation/gamelift/aws-gamelift-fleet_runtimeconfiguration.go index 5cfc448a10..6acc4b597d 100644 --- a/cloudformation/gamelift/aws-gamelift-fleet_runtimeconfiguration.go +++ b/cloudformation/gamelift/aws-gamelift-fleet_runtimeconfiguration.go @@ -31,6 +31,9 @@ type Fleet_RuntimeConfiguration struct { // 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 diff --git a/cloudformation/gamelift/aws-gamelift-fleet_serverprocess.go b/cloudformation/gamelift/aws-gamelift-fleet_serverprocess.go index 1d7728432c..af561b54e9 100644 --- a/cloudformation/gamelift/aws-gamelift-fleet_serverprocess.go +++ b/cloudformation/gamelift/aws-gamelift-fleet_serverprocess.go @@ -31,6 +31,9 @@ type Fleet_ServerProcess struct { // 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 diff --git a/cloudformation/gamelift/aws-gamelift-gamesessionqueue.go b/cloudformation/gamelift/aws-gamelift-gamesessionqueue.go index 65a4f28169..4144ecf3a1 100644 --- a/cloudformation/gamelift/aws-gamelift-gamesessionqueue.go +++ b/cloudformation/gamelift/aws-gamelift-gamesessionqueue.go @@ -40,6 +40,9 @@ type GameSessionQueue struct { // 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 @@ -57,12 +60,14 @@ func (r GameSessionQueue) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -76,6 +81,7 @@ func (r *GameSessionQueue) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -99,5 +105,8 @@ func (r *GameSessionQueue) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/gamelift/aws-gamelift-gamesessionqueue_destination.go b/cloudformation/gamelift/aws-gamelift-gamesessionqueue_destination.go index cf2cbf4f10..533794b227 100644 --- a/cloudformation/gamelift/aws-gamelift-gamesessionqueue_destination.go +++ b/cloudformation/gamelift/aws-gamelift-gamesessionqueue_destination.go @@ -21,6 +21,9 @@ type GameSessionQueue_Destination struct { // 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 diff --git a/cloudformation/gamelift/aws-gamelift-gamesessionqueue_playerlatencypolicy.go b/cloudformation/gamelift/aws-gamelift-gamesessionqueue_playerlatencypolicy.go index cc3d2a423f..1d324a5af3 100644 --- a/cloudformation/gamelift/aws-gamelift-gamesessionqueue_playerlatencypolicy.go +++ b/cloudformation/gamelift/aws-gamelift-gamesessionqueue_playerlatencypolicy.go @@ -26,6 +26,9 @@ type GameSessionQueue_PlayerLatencyPolicy struct { // 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 diff --git a/cloudformation/gamelift/aws-gamelift-matchmakingconfiguration.go b/cloudformation/gamelift/aws-gamelift-matchmakingconfiguration.go index 25c65c4ed5..0730796594 100644 --- a/cloudformation/gamelift/aws-gamelift-matchmakingconfiguration.go +++ b/cloudformation/gamelift/aws-gamelift-matchmakingconfiguration.go @@ -85,6 +85,9 @@ type MatchmakingConfiguration struct { // 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 @@ -102,12 +105,14 @@ func (r MatchmakingConfiguration) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -121,6 +126,7 @@ func (r *MatchmakingConfiguration) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -144,5 +150,8 @@ func (r *MatchmakingConfiguration) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/gamelift/aws-gamelift-matchmakingconfiguration_gameproperty.go b/cloudformation/gamelift/aws-gamelift-matchmakingconfiguration_gameproperty.go index 4e4f2937cb..4dadaf7dd6 100644 --- a/cloudformation/gamelift/aws-gamelift-matchmakingconfiguration_gameproperty.go +++ b/cloudformation/gamelift/aws-gamelift-matchmakingconfiguration_gameproperty.go @@ -26,6 +26,9 @@ type MatchmakingConfiguration_GameProperty struct { // 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 diff --git a/cloudformation/gamelift/aws-gamelift-matchmakingruleset.go b/cloudformation/gamelift/aws-gamelift-matchmakingruleset.go index 80b36bf36b..4732cc8def 100644 --- a/cloudformation/gamelift/aws-gamelift-matchmakingruleset.go +++ b/cloudformation/gamelift/aws-gamelift-matchmakingruleset.go @@ -30,6 +30,9 @@ type MatchmakingRuleSet struct { // 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 @@ -47,12 +50,14 @@ func (r MatchmakingRuleSet) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -66,6 +71,7 @@ func (r *MatchmakingRuleSet) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -89,5 +95,8 @@ func (r *MatchmakingRuleSet) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/gamelift/aws-gamelift-script.go b/cloudformation/gamelift/aws-gamelift-script.go index 187614e9e1..8268a85d0d 100644 --- a/cloudformation/gamelift/aws-gamelift-script.go +++ b/cloudformation/gamelift/aws-gamelift-script.go @@ -35,6 +35,9 @@ type Script struct { // 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 @@ -52,12 +55,14 @@ func (r Script) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -71,6 +76,7 @@ func (r *Script) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -94,5 +100,8 @@ func (r *Script) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/gamelift/aws-gamelift-script_s3location.go b/cloudformation/gamelift/aws-gamelift-script_s3location.go index 0709334615..f933f92ec1 100644 --- a/cloudformation/gamelift/aws-gamelift-script_s3location.go +++ b/cloudformation/gamelift/aws-gamelift-script_s3location.go @@ -36,6 +36,9 @@ type Script_S3Location struct { // 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 diff --git a/cloudformation/glue/aws-glue-classifier.go b/cloudformation/glue/aws-glue-classifier.go index 2b8daa49ee..c3cb35ce31 100644 --- a/cloudformation/glue/aws-glue-classifier.go +++ b/cloudformation/glue/aws-glue-classifier.go @@ -40,6 +40,9 @@ type Classifier struct { // 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 @@ -57,12 +60,14 @@ func (r Classifier) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -76,6 +81,7 @@ func (r *Classifier) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -99,5 +105,8 @@ func (r *Classifier) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/glue/aws-glue-classifier_csvclassifier.go b/cloudformation/glue/aws-glue-classifier_csvclassifier.go index 69d34a36a5..e9890717ef 100644 --- a/cloudformation/glue/aws-glue-classifier_csvclassifier.go +++ b/cloudformation/glue/aws-glue-classifier_csvclassifier.go @@ -51,6 +51,9 @@ type Classifier_CsvClassifier struct { // 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 diff --git a/cloudformation/glue/aws-glue-classifier_grokclassifier.go b/cloudformation/glue/aws-glue-classifier_grokclassifier.go index d44296f303..016729dd29 100644 --- a/cloudformation/glue/aws-glue-classifier_grokclassifier.go +++ b/cloudformation/glue/aws-glue-classifier_grokclassifier.go @@ -36,6 +36,9 @@ type Classifier_GrokClassifier struct { // 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 diff --git a/cloudformation/glue/aws-glue-classifier_jsonclassifier.go b/cloudformation/glue/aws-glue-classifier_jsonclassifier.go index 4273d7f977..9800f831df 100644 --- a/cloudformation/glue/aws-glue-classifier_jsonclassifier.go +++ b/cloudformation/glue/aws-glue-classifier_jsonclassifier.go @@ -26,6 +26,9 @@ type Classifier_JsonClassifier struct { // 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 diff --git a/cloudformation/glue/aws-glue-classifier_xmlclassifier.go b/cloudformation/glue/aws-glue-classifier_xmlclassifier.go index fad222ee87..338febd89f 100644 --- a/cloudformation/glue/aws-glue-classifier_xmlclassifier.go +++ b/cloudformation/glue/aws-glue-classifier_xmlclassifier.go @@ -31,6 +31,9 @@ type Classifier_XMLClassifier struct { // 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 diff --git a/cloudformation/glue/aws-glue-connection.go b/cloudformation/glue/aws-glue-connection.go index b822cf75fe..8693ff6aa8 100644 --- a/cloudformation/glue/aws-glue-connection.go +++ b/cloudformation/glue/aws-glue-connection.go @@ -30,6 +30,9 @@ type Connection struct { // 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 @@ -47,12 +50,14 @@ func (r Connection) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -66,6 +71,7 @@ func (r *Connection) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -89,5 +95,8 @@ func (r *Connection) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/glue/aws-glue-connection_connectioninput.go b/cloudformation/glue/aws-glue-connection_connectioninput.go index 1c4e2ce92d..7bec57a673 100644 --- a/cloudformation/glue/aws-glue-connection_connectioninput.go +++ b/cloudformation/glue/aws-glue-connection_connectioninput.go @@ -46,6 +46,9 @@ type Connection_ConnectionInput struct { // 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 diff --git a/cloudformation/glue/aws-glue-connection_physicalconnectionrequirements.go b/cloudformation/glue/aws-glue-connection_physicalconnectionrequirements.go index 9100e0804e..309b772ad4 100644 --- a/cloudformation/glue/aws-glue-connection_physicalconnectionrequirements.go +++ b/cloudformation/glue/aws-glue-connection_physicalconnectionrequirements.go @@ -31,6 +31,9 @@ type Connection_PhysicalConnectionRequirements struct { // 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 diff --git a/cloudformation/glue/aws-glue-crawler.go b/cloudformation/glue/aws-glue-crawler.go index 83db2a2c05..d74679ed76 100644 --- a/cloudformation/glue/aws-glue-crawler.go +++ b/cloudformation/glue/aws-glue-crawler.go @@ -80,6 +80,9 @@ type Crawler struct { // 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 @@ -97,12 +100,14 @@ func (r Crawler) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -116,6 +121,7 @@ func (r *Crawler) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -139,5 +145,8 @@ func (r *Crawler) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/glue/aws-glue-crawler_catalogtarget.go b/cloudformation/glue/aws-glue-crawler_catalogtarget.go index 91e42aef27..68d0071256 100644 --- a/cloudformation/glue/aws-glue-crawler_catalogtarget.go +++ b/cloudformation/glue/aws-glue-crawler_catalogtarget.go @@ -26,6 +26,9 @@ type Crawler_CatalogTarget struct { // 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 diff --git a/cloudformation/glue/aws-glue-crawler_dynamodbtarget.go b/cloudformation/glue/aws-glue-crawler_dynamodbtarget.go index 8bc261b857..316af05171 100644 --- a/cloudformation/glue/aws-glue-crawler_dynamodbtarget.go +++ b/cloudformation/glue/aws-glue-crawler_dynamodbtarget.go @@ -21,6 +21,9 @@ type Crawler_DynamoDBTarget struct { // 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 diff --git a/cloudformation/glue/aws-glue-crawler_jdbctarget.go b/cloudformation/glue/aws-glue-crawler_jdbctarget.go index 0b1a9448e9..b7c4015a22 100644 --- a/cloudformation/glue/aws-glue-crawler_jdbctarget.go +++ b/cloudformation/glue/aws-glue-crawler_jdbctarget.go @@ -31,6 +31,9 @@ type Crawler_JdbcTarget struct { // 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 diff --git a/cloudformation/glue/aws-glue-crawler_s3target.go b/cloudformation/glue/aws-glue-crawler_s3target.go index ad143ef412..ea731b6ba9 100644 --- a/cloudformation/glue/aws-glue-crawler_s3target.go +++ b/cloudformation/glue/aws-glue-crawler_s3target.go @@ -26,6 +26,9 @@ type Crawler_S3Target struct { // 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 diff --git a/cloudformation/glue/aws-glue-crawler_schedule.go b/cloudformation/glue/aws-glue-crawler_schedule.go index fdb7607d87..36440664b3 100644 --- a/cloudformation/glue/aws-glue-crawler_schedule.go +++ b/cloudformation/glue/aws-glue-crawler_schedule.go @@ -21,6 +21,9 @@ type Crawler_Schedule struct { // 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 diff --git a/cloudformation/glue/aws-glue-crawler_schemachangepolicy.go b/cloudformation/glue/aws-glue-crawler_schemachangepolicy.go index f3aeff948f..21c5ef99f9 100644 --- a/cloudformation/glue/aws-glue-crawler_schemachangepolicy.go +++ b/cloudformation/glue/aws-glue-crawler_schemachangepolicy.go @@ -26,6 +26,9 @@ type Crawler_SchemaChangePolicy struct { // 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 diff --git a/cloudformation/glue/aws-glue-crawler_targets.go b/cloudformation/glue/aws-glue-crawler_targets.go index 4a7dbe0814..7349d57c97 100644 --- a/cloudformation/glue/aws-glue-crawler_targets.go +++ b/cloudformation/glue/aws-glue-crawler_targets.go @@ -36,6 +36,9 @@ type Crawler_Targets struct { // 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 diff --git a/cloudformation/glue/aws-glue-database.go b/cloudformation/glue/aws-glue-database.go index f887b0b82f..31ca1c9f75 100644 --- a/cloudformation/glue/aws-glue-database.go +++ b/cloudformation/glue/aws-glue-database.go @@ -30,6 +30,9 @@ type Database struct { // 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 @@ -47,12 +50,14 @@ func (r Database) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -66,6 +71,7 @@ func (r *Database) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -89,5 +95,8 @@ func (r *Database) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/glue/aws-glue-database_databaseinput.go b/cloudformation/glue/aws-glue-database_databaseinput.go index d0c036465a..fcfce50226 100644 --- a/cloudformation/glue/aws-glue-database_databaseinput.go +++ b/cloudformation/glue/aws-glue-database_databaseinput.go @@ -36,6 +36,9 @@ type Database_DatabaseInput struct { // 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 diff --git a/cloudformation/glue/aws-glue-datacatalogencryptionsettings.go b/cloudformation/glue/aws-glue-datacatalogencryptionsettings.go index 33da2fc8df..9639128e3d 100644 --- a/cloudformation/glue/aws-glue-datacatalogencryptionsettings.go +++ b/cloudformation/glue/aws-glue-datacatalogencryptionsettings.go @@ -30,6 +30,9 @@ type DataCatalogEncryptionSettings struct { // 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 @@ -47,12 +50,14 @@ func (r DataCatalogEncryptionSettings) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -66,6 +71,7 @@ func (r *DataCatalogEncryptionSettings) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -89,5 +95,8 @@ func (r *DataCatalogEncryptionSettings) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/glue/aws-glue-datacatalogencryptionsettings_connectionpasswordencryption.go b/cloudformation/glue/aws-glue-datacatalogencryptionsettings_connectionpasswordencryption.go index 55fd3605d4..e84a6c0035 100644 --- a/cloudformation/glue/aws-glue-datacatalogencryptionsettings_connectionpasswordencryption.go +++ b/cloudformation/glue/aws-glue-datacatalogencryptionsettings_connectionpasswordencryption.go @@ -26,6 +26,9 @@ type DataCatalogEncryptionSettings_ConnectionPasswordEncryption struct { // 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 diff --git a/cloudformation/glue/aws-glue-datacatalogencryptionsettings_datacatalogencryptionsettings.go b/cloudformation/glue/aws-glue-datacatalogencryptionsettings_datacatalogencryptionsettings.go index 03d2a03bbb..7b04b2c397 100644 --- a/cloudformation/glue/aws-glue-datacatalogencryptionsettings_datacatalogencryptionsettings.go +++ b/cloudformation/glue/aws-glue-datacatalogencryptionsettings_datacatalogencryptionsettings.go @@ -26,6 +26,9 @@ type DataCatalogEncryptionSettings_DataCatalogEncryptionSettings struct { // 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 diff --git a/cloudformation/glue/aws-glue-datacatalogencryptionsettings_encryptionatrest.go b/cloudformation/glue/aws-glue-datacatalogencryptionsettings_encryptionatrest.go index 12c7b58839..a553b9f67a 100644 --- a/cloudformation/glue/aws-glue-datacatalogencryptionsettings_encryptionatrest.go +++ b/cloudformation/glue/aws-glue-datacatalogencryptionsettings_encryptionatrest.go @@ -26,6 +26,9 @@ type DataCatalogEncryptionSettings_EncryptionAtRest struct { // 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 diff --git a/cloudformation/glue/aws-glue-devendpoint.go b/cloudformation/glue/aws-glue-devendpoint.go index 22e8d370c0..a712904af5 100644 --- a/cloudformation/glue/aws-glue-devendpoint.go +++ b/cloudformation/glue/aws-glue-devendpoint.go @@ -90,6 +90,9 @@ type DevEndpoint struct { // 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 @@ -107,12 +110,14 @@ func (r DevEndpoint) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -126,6 +131,7 @@ func (r *DevEndpoint) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -149,5 +155,8 @@ func (r *DevEndpoint) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/glue/aws-glue-job.go b/cloudformation/glue/aws-glue-job.go index 44fe6faebb..ca0b842241 100644 --- a/cloudformation/glue/aws-glue-job.go +++ b/cloudformation/glue/aws-glue-job.go @@ -110,6 +110,9 @@ type Job struct { // 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 @@ -127,12 +130,14 @@ func (r Job) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -146,6 +151,7 @@ func (r *Job) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -169,5 +175,8 @@ func (r *Job) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/glue/aws-glue-job_connectionslist.go b/cloudformation/glue/aws-glue-job_connectionslist.go index 1c7dcb8817..8390784c32 100644 --- a/cloudformation/glue/aws-glue-job_connectionslist.go +++ b/cloudformation/glue/aws-glue-job_connectionslist.go @@ -21,6 +21,9 @@ type Job_ConnectionsList struct { // 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 diff --git a/cloudformation/glue/aws-glue-job_executionproperty.go b/cloudformation/glue/aws-glue-job_executionproperty.go index 1542994904..ff08c9b857 100644 --- a/cloudformation/glue/aws-glue-job_executionproperty.go +++ b/cloudformation/glue/aws-glue-job_executionproperty.go @@ -21,6 +21,9 @@ type Job_ExecutionProperty struct { // 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 diff --git a/cloudformation/glue/aws-glue-job_jobcommand.go b/cloudformation/glue/aws-glue-job_jobcommand.go index 9744b4fde3..23447353dc 100644 --- a/cloudformation/glue/aws-glue-job_jobcommand.go +++ b/cloudformation/glue/aws-glue-job_jobcommand.go @@ -31,6 +31,9 @@ type Job_JobCommand struct { // 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 diff --git a/cloudformation/glue/aws-glue-job_notificationproperty.go b/cloudformation/glue/aws-glue-job_notificationproperty.go index 8dc8abc80e..564e2ff545 100644 --- a/cloudformation/glue/aws-glue-job_notificationproperty.go +++ b/cloudformation/glue/aws-glue-job_notificationproperty.go @@ -21,6 +21,9 @@ type Job_NotificationProperty struct { // 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 diff --git a/cloudformation/glue/aws-glue-mltransform.go b/cloudformation/glue/aws-glue-mltransform.go index 7d29b7f63f..13a774d80b 100644 --- a/cloudformation/glue/aws-glue-mltransform.go +++ b/cloudformation/glue/aws-glue-mltransform.go @@ -75,6 +75,9 @@ type MLTransform struct { // 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 @@ -92,12 +95,14 @@ func (r MLTransform) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -111,6 +116,7 @@ func (r *MLTransform) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -134,5 +140,8 @@ func (r *MLTransform) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/glue/aws-glue-mltransform_findmatchesparameters.go b/cloudformation/glue/aws-glue-mltransform_findmatchesparameters.go index b229db48e8..7b9ede2a21 100644 --- a/cloudformation/glue/aws-glue-mltransform_findmatchesparameters.go +++ b/cloudformation/glue/aws-glue-mltransform_findmatchesparameters.go @@ -36,6 +36,9 @@ type MLTransform_FindMatchesParameters struct { // 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 diff --git a/cloudformation/glue/aws-glue-mltransform_gluetables.go b/cloudformation/glue/aws-glue-mltransform_gluetables.go index 6108722bb2..a6124b6001 100644 --- a/cloudformation/glue/aws-glue-mltransform_gluetables.go +++ b/cloudformation/glue/aws-glue-mltransform_gluetables.go @@ -36,6 +36,9 @@ type MLTransform_GlueTables struct { // 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 diff --git a/cloudformation/glue/aws-glue-mltransform_inputrecordtables.go b/cloudformation/glue/aws-glue-mltransform_inputrecordtables.go index dd27fade24..bfcdcbb2a0 100644 --- a/cloudformation/glue/aws-glue-mltransform_inputrecordtables.go +++ b/cloudformation/glue/aws-glue-mltransform_inputrecordtables.go @@ -21,6 +21,9 @@ type MLTransform_InputRecordTables struct { // 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 diff --git a/cloudformation/glue/aws-glue-mltransform_transformparameters.go b/cloudformation/glue/aws-glue-mltransform_transformparameters.go index bff1d7d1de..fa340c7523 100644 --- a/cloudformation/glue/aws-glue-mltransform_transformparameters.go +++ b/cloudformation/glue/aws-glue-mltransform_transformparameters.go @@ -26,6 +26,9 @@ type MLTransform_TransformParameters struct { // 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 diff --git a/cloudformation/glue/aws-glue-partition.go b/cloudformation/glue/aws-glue-partition.go index 1d4c319344..c024a4e5ab 100644 --- a/cloudformation/glue/aws-glue-partition.go +++ b/cloudformation/glue/aws-glue-partition.go @@ -40,6 +40,9 @@ type Partition struct { // 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 @@ -57,12 +60,14 @@ func (r Partition) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -76,6 +81,7 @@ func (r *Partition) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -99,5 +105,8 @@ func (r *Partition) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/glue/aws-glue-partition_column.go b/cloudformation/glue/aws-glue-partition_column.go index 729a43241a..2c71e0cb16 100644 --- a/cloudformation/glue/aws-glue-partition_column.go +++ b/cloudformation/glue/aws-glue-partition_column.go @@ -31,6 +31,9 @@ type Partition_Column struct { // 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 diff --git a/cloudformation/glue/aws-glue-partition_order.go b/cloudformation/glue/aws-glue-partition_order.go index e3d8473744..9de0f177c3 100644 --- a/cloudformation/glue/aws-glue-partition_order.go +++ b/cloudformation/glue/aws-glue-partition_order.go @@ -26,6 +26,9 @@ type Partition_Order struct { // 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 diff --git a/cloudformation/glue/aws-glue-partition_partitioninput.go b/cloudformation/glue/aws-glue-partition_partitioninput.go index 11d2a3daa2..79323e8feb 100644 --- a/cloudformation/glue/aws-glue-partition_partitioninput.go +++ b/cloudformation/glue/aws-glue-partition_partitioninput.go @@ -31,6 +31,9 @@ type Partition_PartitionInput struct { // 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 diff --git a/cloudformation/glue/aws-glue-partition_serdeinfo.go b/cloudformation/glue/aws-glue-partition_serdeinfo.go index 12ce983590..6cc3ac8fb5 100644 --- a/cloudformation/glue/aws-glue-partition_serdeinfo.go +++ b/cloudformation/glue/aws-glue-partition_serdeinfo.go @@ -31,6 +31,9 @@ type Partition_SerdeInfo struct { // 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 diff --git a/cloudformation/glue/aws-glue-partition_skewedinfo.go b/cloudformation/glue/aws-glue-partition_skewedinfo.go index ff302aad97..6175db035f 100644 --- a/cloudformation/glue/aws-glue-partition_skewedinfo.go +++ b/cloudformation/glue/aws-glue-partition_skewedinfo.go @@ -31,6 +31,9 @@ type Partition_SkewedInfo struct { // 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 diff --git a/cloudformation/glue/aws-glue-partition_storagedescriptor.go b/cloudformation/glue/aws-glue-partition_storagedescriptor.go index d893f4e2f0..24d7440ac5 100644 --- a/cloudformation/glue/aws-glue-partition_storagedescriptor.go +++ b/cloudformation/glue/aws-glue-partition_storagedescriptor.go @@ -76,6 +76,9 @@ type Partition_StorageDescriptor struct { // 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 diff --git a/cloudformation/glue/aws-glue-securityconfiguration.go b/cloudformation/glue/aws-glue-securityconfiguration.go index 9a1aae0650..f362a007a2 100644 --- a/cloudformation/glue/aws-glue-securityconfiguration.go +++ b/cloudformation/glue/aws-glue-securityconfiguration.go @@ -30,6 +30,9 @@ type SecurityConfiguration struct { // 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 @@ -47,12 +50,14 @@ func (r SecurityConfiguration) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -66,6 +71,7 @@ func (r *SecurityConfiguration) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -89,5 +95,8 @@ func (r *SecurityConfiguration) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/glue/aws-glue-securityconfiguration_cloudwatchencryption.go b/cloudformation/glue/aws-glue-securityconfiguration_cloudwatchencryption.go index 58c06b2593..3dbd198ba8 100644 --- a/cloudformation/glue/aws-glue-securityconfiguration_cloudwatchencryption.go +++ b/cloudformation/glue/aws-glue-securityconfiguration_cloudwatchencryption.go @@ -26,6 +26,9 @@ type SecurityConfiguration_CloudWatchEncryption struct { // 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 diff --git a/cloudformation/glue/aws-glue-securityconfiguration_encryptionconfiguration.go b/cloudformation/glue/aws-glue-securityconfiguration_encryptionconfiguration.go index 5bf54110b3..8d690cfe9a 100644 --- a/cloudformation/glue/aws-glue-securityconfiguration_encryptionconfiguration.go +++ b/cloudformation/glue/aws-glue-securityconfiguration_encryptionconfiguration.go @@ -31,6 +31,9 @@ type SecurityConfiguration_EncryptionConfiguration struct { // 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 diff --git a/cloudformation/glue/aws-glue-securityconfiguration_jobbookmarksencryption.go b/cloudformation/glue/aws-glue-securityconfiguration_jobbookmarksencryption.go index b6cefc3b3f..5831143940 100644 --- a/cloudformation/glue/aws-glue-securityconfiguration_jobbookmarksencryption.go +++ b/cloudformation/glue/aws-glue-securityconfiguration_jobbookmarksencryption.go @@ -26,6 +26,9 @@ type SecurityConfiguration_JobBookmarksEncryption struct { // 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 diff --git a/cloudformation/glue/aws-glue-securityconfiguration_s3encryption.go b/cloudformation/glue/aws-glue-securityconfiguration_s3encryption.go index e4546ca910..1225b7c7d8 100644 --- a/cloudformation/glue/aws-glue-securityconfiguration_s3encryption.go +++ b/cloudformation/glue/aws-glue-securityconfiguration_s3encryption.go @@ -26,6 +26,9 @@ type SecurityConfiguration_S3Encryption struct { // 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 diff --git a/cloudformation/glue/aws-glue-securityconfiguration_s3encryptions.go b/cloudformation/glue/aws-glue-securityconfiguration_s3encryptions.go index 31e92a1f85..3113c64af5 100644 --- a/cloudformation/glue/aws-glue-securityconfiguration_s3encryptions.go +++ b/cloudformation/glue/aws-glue-securityconfiguration_s3encryptions.go @@ -16,6 +16,9 @@ type SecurityConfiguration_S3Encryptions struct { // 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 diff --git a/cloudformation/glue/aws-glue-table.go b/cloudformation/glue/aws-glue-table.go index e995a6bf24..6ef4985b53 100644 --- a/cloudformation/glue/aws-glue-table.go +++ b/cloudformation/glue/aws-glue-table.go @@ -35,6 +35,9 @@ type Table struct { // 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 @@ -52,12 +55,14 @@ func (r Table) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -71,6 +76,7 @@ func (r *Table) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -94,5 +100,8 @@ func (r *Table) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/glue/aws-glue-table_column.go b/cloudformation/glue/aws-glue-table_column.go index 835701f457..ae780a7ba0 100644 --- a/cloudformation/glue/aws-glue-table_column.go +++ b/cloudformation/glue/aws-glue-table_column.go @@ -31,6 +31,9 @@ type Table_Column struct { // 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 diff --git a/cloudformation/glue/aws-glue-table_order.go b/cloudformation/glue/aws-glue-table_order.go index 75cc80a0be..a80dc95c13 100644 --- a/cloudformation/glue/aws-glue-table_order.go +++ b/cloudformation/glue/aws-glue-table_order.go @@ -26,6 +26,9 @@ type Table_Order struct { // 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 diff --git a/cloudformation/glue/aws-glue-table_serdeinfo.go b/cloudformation/glue/aws-glue-table_serdeinfo.go index aa32f51dd8..180f483e05 100644 --- a/cloudformation/glue/aws-glue-table_serdeinfo.go +++ b/cloudformation/glue/aws-glue-table_serdeinfo.go @@ -31,6 +31,9 @@ type Table_SerdeInfo struct { // 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 diff --git a/cloudformation/glue/aws-glue-table_skewedinfo.go b/cloudformation/glue/aws-glue-table_skewedinfo.go index 558e4a46e0..ffe603d574 100644 --- a/cloudformation/glue/aws-glue-table_skewedinfo.go +++ b/cloudformation/glue/aws-glue-table_skewedinfo.go @@ -31,6 +31,9 @@ type Table_SkewedInfo struct { // 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 diff --git a/cloudformation/glue/aws-glue-table_storagedescriptor.go b/cloudformation/glue/aws-glue-table_storagedescriptor.go index fd81e2ef33..0e8c5cb786 100644 --- a/cloudformation/glue/aws-glue-table_storagedescriptor.go +++ b/cloudformation/glue/aws-glue-table_storagedescriptor.go @@ -76,6 +76,9 @@ type Table_StorageDescriptor struct { // 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 diff --git a/cloudformation/glue/aws-glue-table_tableinput.go b/cloudformation/glue/aws-glue-table_tableinput.go index 5e61289f94..9b45d75c04 100644 --- a/cloudformation/glue/aws-glue-table_tableinput.go +++ b/cloudformation/glue/aws-glue-table_tableinput.go @@ -66,6 +66,9 @@ type Table_TableInput struct { // 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 diff --git a/cloudformation/glue/aws-glue-trigger.go b/cloudformation/glue/aws-glue-trigger.go index b7d70abb6e..942ab16045 100644 --- a/cloudformation/glue/aws-glue-trigger.go +++ b/cloudformation/glue/aws-glue-trigger.go @@ -65,6 +65,9 @@ type Trigger struct { // 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 @@ -82,12 +85,14 @@ func (r Trigger) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -101,6 +106,7 @@ func (r *Trigger) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -124,5 +130,8 @@ func (r *Trigger) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/glue/aws-glue-trigger_action.go b/cloudformation/glue/aws-glue-trigger_action.go index 3ecc8035f9..8099a512c8 100644 --- a/cloudformation/glue/aws-glue-trigger_action.go +++ b/cloudformation/glue/aws-glue-trigger_action.go @@ -46,6 +46,9 @@ type Trigger_Action struct { // 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 diff --git a/cloudformation/glue/aws-glue-trigger_condition.go b/cloudformation/glue/aws-glue-trigger_condition.go index fd481749b1..2b71d1d200 100644 --- a/cloudformation/glue/aws-glue-trigger_condition.go +++ b/cloudformation/glue/aws-glue-trigger_condition.go @@ -41,6 +41,9 @@ type Trigger_Condition struct { // 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 diff --git a/cloudformation/glue/aws-glue-trigger_notificationproperty.go b/cloudformation/glue/aws-glue-trigger_notificationproperty.go index 8517d270fb..00462b88c0 100644 --- a/cloudformation/glue/aws-glue-trigger_notificationproperty.go +++ b/cloudformation/glue/aws-glue-trigger_notificationproperty.go @@ -21,6 +21,9 @@ type Trigger_NotificationProperty struct { // 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 diff --git a/cloudformation/glue/aws-glue-trigger_predicate.go b/cloudformation/glue/aws-glue-trigger_predicate.go index f5d8a9d29a..ff3eaeb03f 100644 --- a/cloudformation/glue/aws-glue-trigger_predicate.go +++ b/cloudformation/glue/aws-glue-trigger_predicate.go @@ -26,6 +26,9 @@ type Trigger_Predicate struct { // 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 diff --git a/cloudformation/glue/aws-glue-workflow.go b/cloudformation/glue/aws-glue-workflow.go index 5d83aced97..a723e47c2f 100644 --- a/cloudformation/glue/aws-glue-workflow.go +++ b/cloudformation/glue/aws-glue-workflow.go @@ -40,6 +40,9 @@ type Workflow struct { // 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 @@ -57,12 +60,14 @@ func (r Workflow) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -76,6 +81,7 @@ func (r *Workflow) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -99,5 +105,8 @@ func (r *Workflow) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/greengrass/aws-greengrass-connectordefinition.go b/cloudformation/greengrass/aws-greengrass-connectordefinition.go index fd83b29e79..d76e2a0a21 100644 --- a/cloudformation/greengrass/aws-greengrass-connectordefinition.go +++ b/cloudformation/greengrass/aws-greengrass-connectordefinition.go @@ -35,6 +35,9 @@ type ConnectorDefinition struct { // 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 @@ -52,12 +55,14 @@ func (r ConnectorDefinition) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -71,6 +76,7 @@ func (r *ConnectorDefinition) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -94,5 +100,8 @@ func (r *ConnectorDefinition) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/greengrass/aws-greengrass-connectordefinition_connector.go b/cloudformation/greengrass/aws-greengrass-connectordefinition_connector.go index 300934998d..2561e3dad2 100644 --- a/cloudformation/greengrass/aws-greengrass-connectordefinition_connector.go +++ b/cloudformation/greengrass/aws-greengrass-connectordefinition_connector.go @@ -31,6 +31,9 @@ type ConnectorDefinition_Connector struct { // 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 diff --git a/cloudformation/greengrass/aws-greengrass-connectordefinition_connectordefinitionversion.go b/cloudformation/greengrass/aws-greengrass-connectordefinition_connectordefinitionversion.go index 4607b309f7..5a42fd0a29 100644 --- a/cloudformation/greengrass/aws-greengrass-connectordefinition_connectordefinitionversion.go +++ b/cloudformation/greengrass/aws-greengrass-connectordefinition_connectordefinitionversion.go @@ -21,6 +21,9 @@ type ConnectorDefinition_ConnectorDefinitionVersion struct { // 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 diff --git a/cloudformation/greengrass/aws-greengrass-connectordefinitionversion.go b/cloudformation/greengrass/aws-greengrass-connectordefinitionversion.go index 4e752afe65..8b870f2fb8 100644 --- a/cloudformation/greengrass/aws-greengrass-connectordefinitionversion.go +++ b/cloudformation/greengrass/aws-greengrass-connectordefinitionversion.go @@ -30,6 +30,9 @@ type ConnectorDefinitionVersion struct { // 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 @@ -47,12 +50,14 @@ func (r ConnectorDefinitionVersion) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -66,6 +71,7 @@ func (r *ConnectorDefinitionVersion) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -89,5 +95,8 @@ func (r *ConnectorDefinitionVersion) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/greengrass/aws-greengrass-connectordefinitionversion_connector.go b/cloudformation/greengrass/aws-greengrass-connectordefinitionversion_connector.go index 31020ec658..18c01f26c2 100644 --- a/cloudformation/greengrass/aws-greengrass-connectordefinitionversion_connector.go +++ b/cloudformation/greengrass/aws-greengrass-connectordefinitionversion_connector.go @@ -31,6 +31,9 @@ type ConnectorDefinitionVersion_Connector struct { // 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 diff --git a/cloudformation/greengrass/aws-greengrass-coredefinition.go b/cloudformation/greengrass/aws-greengrass-coredefinition.go index 0f833b8e58..357a71e92d 100644 --- a/cloudformation/greengrass/aws-greengrass-coredefinition.go +++ b/cloudformation/greengrass/aws-greengrass-coredefinition.go @@ -35,6 +35,9 @@ type CoreDefinition struct { // 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 @@ -52,12 +55,14 @@ func (r CoreDefinition) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -71,6 +76,7 @@ func (r *CoreDefinition) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -94,5 +100,8 @@ func (r *CoreDefinition) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/greengrass/aws-greengrass-coredefinition_core.go b/cloudformation/greengrass/aws-greengrass-coredefinition_core.go index 16fc12817b..bc34ee35d4 100644 --- a/cloudformation/greengrass/aws-greengrass-coredefinition_core.go +++ b/cloudformation/greengrass/aws-greengrass-coredefinition_core.go @@ -36,6 +36,9 @@ type CoreDefinition_Core struct { // 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 diff --git a/cloudformation/greengrass/aws-greengrass-coredefinition_coredefinitionversion.go b/cloudformation/greengrass/aws-greengrass-coredefinition_coredefinitionversion.go index dbc65cb721..4303e7c342 100644 --- a/cloudformation/greengrass/aws-greengrass-coredefinition_coredefinitionversion.go +++ b/cloudformation/greengrass/aws-greengrass-coredefinition_coredefinitionversion.go @@ -21,6 +21,9 @@ type CoreDefinition_CoreDefinitionVersion struct { // 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 diff --git a/cloudformation/greengrass/aws-greengrass-coredefinitionversion.go b/cloudformation/greengrass/aws-greengrass-coredefinitionversion.go index 3f2881a1e1..64b3d12d07 100644 --- a/cloudformation/greengrass/aws-greengrass-coredefinitionversion.go +++ b/cloudformation/greengrass/aws-greengrass-coredefinitionversion.go @@ -30,6 +30,9 @@ type CoreDefinitionVersion struct { // 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 @@ -47,12 +50,14 @@ func (r CoreDefinitionVersion) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -66,6 +71,7 @@ func (r *CoreDefinitionVersion) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -89,5 +95,8 @@ func (r *CoreDefinitionVersion) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/greengrass/aws-greengrass-coredefinitionversion_core.go b/cloudformation/greengrass/aws-greengrass-coredefinitionversion_core.go index a7018fd3b6..393457f112 100644 --- a/cloudformation/greengrass/aws-greengrass-coredefinitionversion_core.go +++ b/cloudformation/greengrass/aws-greengrass-coredefinitionversion_core.go @@ -36,6 +36,9 @@ type CoreDefinitionVersion_Core struct { // 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 diff --git a/cloudformation/greengrass/aws-greengrass-devicedefinition.go b/cloudformation/greengrass/aws-greengrass-devicedefinition.go index 0be16e6649..7c1f045500 100644 --- a/cloudformation/greengrass/aws-greengrass-devicedefinition.go +++ b/cloudformation/greengrass/aws-greengrass-devicedefinition.go @@ -35,6 +35,9 @@ type DeviceDefinition struct { // 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 @@ -52,12 +55,14 @@ func (r DeviceDefinition) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -71,6 +76,7 @@ func (r *DeviceDefinition) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -94,5 +100,8 @@ func (r *DeviceDefinition) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/greengrass/aws-greengrass-devicedefinition_device.go b/cloudformation/greengrass/aws-greengrass-devicedefinition_device.go index 1512d847b7..11e9bd3056 100644 --- a/cloudformation/greengrass/aws-greengrass-devicedefinition_device.go +++ b/cloudformation/greengrass/aws-greengrass-devicedefinition_device.go @@ -36,6 +36,9 @@ type DeviceDefinition_Device struct { // 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 diff --git a/cloudformation/greengrass/aws-greengrass-devicedefinition_devicedefinitionversion.go b/cloudformation/greengrass/aws-greengrass-devicedefinition_devicedefinitionversion.go index 84d04aeb65..3f6519d117 100644 --- a/cloudformation/greengrass/aws-greengrass-devicedefinition_devicedefinitionversion.go +++ b/cloudformation/greengrass/aws-greengrass-devicedefinition_devicedefinitionversion.go @@ -21,6 +21,9 @@ type DeviceDefinition_DeviceDefinitionVersion struct { // 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 diff --git a/cloudformation/greengrass/aws-greengrass-devicedefinitionversion.go b/cloudformation/greengrass/aws-greengrass-devicedefinitionversion.go index 0c59cf789c..3e3328afc3 100644 --- a/cloudformation/greengrass/aws-greengrass-devicedefinitionversion.go +++ b/cloudformation/greengrass/aws-greengrass-devicedefinitionversion.go @@ -30,6 +30,9 @@ type DeviceDefinitionVersion struct { // 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 @@ -47,12 +50,14 @@ func (r DeviceDefinitionVersion) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -66,6 +71,7 @@ func (r *DeviceDefinitionVersion) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -89,5 +95,8 @@ func (r *DeviceDefinitionVersion) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/greengrass/aws-greengrass-devicedefinitionversion_device.go b/cloudformation/greengrass/aws-greengrass-devicedefinitionversion_device.go index c1597fac3b..377596a957 100644 --- a/cloudformation/greengrass/aws-greengrass-devicedefinitionversion_device.go +++ b/cloudformation/greengrass/aws-greengrass-devicedefinitionversion_device.go @@ -36,6 +36,9 @@ type DeviceDefinitionVersion_Device struct { // 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 diff --git a/cloudformation/greengrass/aws-greengrass-functiondefinition.go b/cloudformation/greengrass/aws-greengrass-functiondefinition.go index 3f3c8f271e..3919532e00 100644 --- a/cloudformation/greengrass/aws-greengrass-functiondefinition.go +++ b/cloudformation/greengrass/aws-greengrass-functiondefinition.go @@ -35,6 +35,9 @@ type FunctionDefinition struct { // 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 @@ -52,12 +55,14 @@ func (r FunctionDefinition) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -71,6 +76,7 @@ func (r *FunctionDefinition) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -94,5 +100,8 @@ func (r *FunctionDefinition) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/greengrass/aws-greengrass-functiondefinition_defaultconfig.go b/cloudformation/greengrass/aws-greengrass-functiondefinition_defaultconfig.go index 415dd2be6d..1a6dc708af 100644 --- a/cloudformation/greengrass/aws-greengrass-functiondefinition_defaultconfig.go +++ b/cloudformation/greengrass/aws-greengrass-functiondefinition_defaultconfig.go @@ -21,6 +21,9 @@ type FunctionDefinition_DefaultConfig struct { // 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 diff --git a/cloudformation/greengrass/aws-greengrass-functiondefinition_environment.go b/cloudformation/greengrass/aws-greengrass-functiondefinition_environment.go index e5466e0c9c..06432bc61f 100644 --- a/cloudformation/greengrass/aws-greengrass-functiondefinition_environment.go +++ b/cloudformation/greengrass/aws-greengrass-functiondefinition_environment.go @@ -36,6 +36,9 @@ type FunctionDefinition_Environment struct { // 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 diff --git a/cloudformation/greengrass/aws-greengrass-functiondefinition_execution.go b/cloudformation/greengrass/aws-greengrass-functiondefinition_execution.go index 68a5d7bf4c..42fa36c8ee 100644 --- a/cloudformation/greengrass/aws-greengrass-functiondefinition_execution.go +++ b/cloudformation/greengrass/aws-greengrass-functiondefinition_execution.go @@ -26,6 +26,9 @@ type FunctionDefinition_Execution struct { // 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 diff --git a/cloudformation/greengrass/aws-greengrass-functiondefinition_function.go b/cloudformation/greengrass/aws-greengrass-functiondefinition_function.go index 59c66f6dcc..ccd4e7c974 100644 --- a/cloudformation/greengrass/aws-greengrass-functiondefinition_function.go +++ b/cloudformation/greengrass/aws-greengrass-functiondefinition_function.go @@ -31,6 +31,9 @@ type FunctionDefinition_Function struct { // 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 diff --git a/cloudformation/greengrass/aws-greengrass-functiondefinition_functionconfiguration.go b/cloudformation/greengrass/aws-greengrass-functiondefinition_functionconfiguration.go index 8d76b551ed..61815e9b09 100644 --- a/cloudformation/greengrass/aws-greengrass-functiondefinition_functionconfiguration.go +++ b/cloudformation/greengrass/aws-greengrass-functiondefinition_functionconfiguration.go @@ -51,6 +51,9 @@ type FunctionDefinition_FunctionConfiguration struct { // 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 diff --git a/cloudformation/greengrass/aws-greengrass-functiondefinition_functiondefinitionversion.go b/cloudformation/greengrass/aws-greengrass-functiondefinition_functiondefinitionversion.go index 352d921c4e..5eddb7f8b9 100644 --- a/cloudformation/greengrass/aws-greengrass-functiondefinition_functiondefinitionversion.go +++ b/cloudformation/greengrass/aws-greengrass-functiondefinition_functiondefinitionversion.go @@ -26,6 +26,9 @@ type FunctionDefinition_FunctionDefinitionVersion struct { // 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 diff --git a/cloudformation/greengrass/aws-greengrass-functiondefinition_resourceaccesspolicy.go b/cloudformation/greengrass/aws-greengrass-functiondefinition_resourceaccesspolicy.go index d40f8cc4b5..f0741d33c7 100644 --- a/cloudformation/greengrass/aws-greengrass-functiondefinition_resourceaccesspolicy.go +++ b/cloudformation/greengrass/aws-greengrass-functiondefinition_resourceaccesspolicy.go @@ -26,6 +26,9 @@ type FunctionDefinition_ResourceAccessPolicy struct { // 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 diff --git a/cloudformation/greengrass/aws-greengrass-functiondefinition_runas.go b/cloudformation/greengrass/aws-greengrass-functiondefinition_runas.go index dee37ab5a2..5313fe5c3e 100644 --- a/cloudformation/greengrass/aws-greengrass-functiondefinition_runas.go +++ b/cloudformation/greengrass/aws-greengrass-functiondefinition_runas.go @@ -26,6 +26,9 @@ type FunctionDefinition_RunAs struct { // 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 diff --git a/cloudformation/greengrass/aws-greengrass-functiondefinitionversion.go b/cloudformation/greengrass/aws-greengrass-functiondefinitionversion.go index 847e4fac8a..c7dc95eb95 100644 --- a/cloudformation/greengrass/aws-greengrass-functiondefinitionversion.go +++ b/cloudformation/greengrass/aws-greengrass-functiondefinitionversion.go @@ -35,6 +35,9 @@ type FunctionDefinitionVersion struct { // 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 @@ -52,12 +55,14 @@ func (r FunctionDefinitionVersion) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -71,6 +76,7 @@ func (r *FunctionDefinitionVersion) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -94,5 +100,8 @@ func (r *FunctionDefinitionVersion) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/greengrass/aws-greengrass-functiondefinitionversion_defaultconfig.go b/cloudformation/greengrass/aws-greengrass-functiondefinitionversion_defaultconfig.go index 9d8bb12a09..9e71cebd54 100644 --- a/cloudformation/greengrass/aws-greengrass-functiondefinitionversion_defaultconfig.go +++ b/cloudformation/greengrass/aws-greengrass-functiondefinitionversion_defaultconfig.go @@ -21,6 +21,9 @@ type FunctionDefinitionVersion_DefaultConfig struct { // 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 diff --git a/cloudformation/greengrass/aws-greengrass-functiondefinitionversion_environment.go b/cloudformation/greengrass/aws-greengrass-functiondefinitionversion_environment.go index 90294504a8..bdb972ab0c 100644 --- a/cloudformation/greengrass/aws-greengrass-functiondefinitionversion_environment.go +++ b/cloudformation/greengrass/aws-greengrass-functiondefinitionversion_environment.go @@ -36,6 +36,9 @@ type FunctionDefinitionVersion_Environment struct { // 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 diff --git a/cloudformation/greengrass/aws-greengrass-functiondefinitionversion_execution.go b/cloudformation/greengrass/aws-greengrass-functiondefinitionversion_execution.go index cda48de5ae..6585e288fc 100644 --- a/cloudformation/greengrass/aws-greengrass-functiondefinitionversion_execution.go +++ b/cloudformation/greengrass/aws-greengrass-functiondefinitionversion_execution.go @@ -26,6 +26,9 @@ type FunctionDefinitionVersion_Execution struct { // 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 diff --git a/cloudformation/greengrass/aws-greengrass-functiondefinitionversion_function.go b/cloudformation/greengrass/aws-greengrass-functiondefinitionversion_function.go index 29c9de2f44..cb0e35ae33 100644 --- a/cloudformation/greengrass/aws-greengrass-functiondefinitionversion_function.go +++ b/cloudformation/greengrass/aws-greengrass-functiondefinitionversion_function.go @@ -31,6 +31,9 @@ type FunctionDefinitionVersion_Function struct { // 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 diff --git a/cloudformation/greengrass/aws-greengrass-functiondefinitionversion_functionconfiguration.go b/cloudformation/greengrass/aws-greengrass-functiondefinitionversion_functionconfiguration.go index 2459bb3b2e..766d9b1ab5 100644 --- a/cloudformation/greengrass/aws-greengrass-functiondefinitionversion_functionconfiguration.go +++ b/cloudformation/greengrass/aws-greengrass-functiondefinitionversion_functionconfiguration.go @@ -51,6 +51,9 @@ type FunctionDefinitionVersion_FunctionConfiguration struct { // 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 diff --git a/cloudformation/greengrass/aws-greengrass-functiondefinitionversion_resourceaccesspolicy.go b/cloudformation/greengrass/aws-greengrass-functiondefinitionversion_resourceaccesspolicy.go index 1576193f30..7c592ed42b 100644 --- a/cloudformation/greengrass/aws-greengrass-functiondefinitionversion_resourceaccesspolicy.go +++ b/cloudformation/greengrass/aws-greengrass-functiondefinitionversion_resourceaccesspolicy.go @@ -26,6 +26,9 @@ type FunctionDefinitionVersion_ResourceAccessPolicy struct { // 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 diff --git a/cloudformation/greengrass/aws-greengrass-functiondefinitionversion_runas.go b/cloudformation/greengrass/aws-greengrass-functiondefinitionversion_runas.go index 025d7bfc55..d766b712ee 100644 --- a/cloudformation/greengrass/aws-greengrass-functiondefinitionversion_runas.go +++ b/cloudformation/greengrass/aws-greengrass-functiondefinitionversion_runas.go @@ -26,6 +26,9 @@ type FunctionDefinitionVersion_RunAs struct { // 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 diff --git a/cloudformation/greengrass/aws-greengrass-group.go b/cloudformation/greengrass/aws-greengrass-group.go index 5883c283b2..914cbfd17d 100644 --- a/cloudformation/greengrass/aws-greengrass-group.go +++ b/cloudformation/greengrass/aws-greengrass-group.go @@ -40,6 +40,9 @@ type Group struct { // 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 @@ -57,12 +60,14 @@ func (r Group) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -76,6 +81,7 @@ func (r *Group) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -99,5 +105,8 @@ func (r *Group) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/greengrass/aws-greengrass-group_groupversion.go b/cloudformation/greengrass/aws-greengrass-group_groupversion.go index 0123186418..8cdb531a41 100644 --- a/cloudformation/greengrass/aws-greengrass-group_groupversion.go +++ b/cloudformation/greengrass/aws-greengrass-group_groupversion.go @@ -51,6 +51,9 @@ type Group_GroupVersion struct { // 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 diff --git a/cloudformation/greengrass/aws-greengrass-groupversion.go b/cloudformation/greengrass/aws-greengrass-groupversion.go index ee4964f0b3..80c63f9293 100644 --- a/cloudformation/greengrass/aws-greengrass-groupversion.go +++ b/cloudformation/greengrass/aws-greengrass-groupversion.go @@ -60,6 +60,9 @@ type GroupVersion struct { // 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 @@ -77,12 +80,14 @@ func (r GroupVersion) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -96,6 +101,7 @@ func (r *GroupVersion) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -119,5 +125,8 @@ func (r *GroupVersion) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/greengrass/aws-greengrass-loggerdefinition.go b/cloudformation/greengrass/aws-greengrass-loggerdefinition.go index d7c77722a0..5c2355578b 100644 --- a/cloudformation/greengrass/aws-greengrass-loggerdefinition.go +++ b/cloudformation/greengrass/aws-greengrass-loggerdefinition.go @@ -35,6 +35,9 @@ type LoggerDefinition struct { // 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 @@ -52,12 +55,14 @@ func (r LoggerDefinition) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -71,6 +76,7 @@ func (r *LoggerDefinition) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -94,5 +100,8 @@ func (r *LoggerDefinition) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/greengrass/aws-greengrass-loggerdefinition_logger.go b/cloudformation/greengrass/aws-greengrass-loggerdefinition_logger.go index a66cdac106..27c35b4ea4 100644 --- a/cloudformation/greengrass/aws-greengrass-loggerdefinition_logger.go +++ b/cloudformation/greengrass/aws-greengrass-loggerdefinition_logger.go @@ -41,6 +41,9 @@ type LoggerDefinition_Logger struct { // 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 diff --git a/cloudformation/greengrass/aws-greengrass-loggerdefinition_loggerdefinitionversion.go b/cloudformation/greengrass/aws-greengrass-loggerdefinition_loggerdefinitionversion.go index 26f629c180..cb1f00590c 100644 --- a/cloudformation/greengrass/aws-greengrass-loggerdefinition_loggerdefinitionversion.go +++ b/cloudformation/greengrass/aws-greengrass-loggerdefinition_loggerdefinitionversion.go @@ -21,6 +21,9 @@ type LoggerDefinition_LoggerDefinitionVersion struct { // 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 diff --git a/cloudformation/greengrass/aws-greengrass-loggerdefinitionversion.go b/cloudformation/greengrass/aws-greengrass-loggerdefinitionversion.go index 3a231b59b6..7d646135d6 100644 --- a/cloudformation/greengrass/aws-greengrass-loggerdefinitionversion.go +++ b/cloudformation/greengrass/aws-greengrass-loggerdefinitionversion.go @@ -30,6 +30,9 @@ type LoggerDefinitionVersion struct { // 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 @@ -47,12 +50,14 @@ func (r LoggerDefinitionVersion) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -66,6 +71,7 @@ func (r *LoggerDefinitionVersion) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -89,5 +95,8 @@ func (r *LoggerDefinitionVersion) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/greengrass/aws-greengrass-loggerdefinitionversion_logger.go b/cloudformation/greengrass/aws-greengrass-loggerdefinitionversion_logger.go index a8af0b2e6b..0fa3f8c4fc 100644 --- a/cloudformation/greengrass/aws-greengrass-loggerdefinitionversion_logger.go +++ b/cloudformation/greengrass/aws-greengrass-loggerdefinitionversion_logger.go @@ -41,6 +41,9 @@ type LoggerDefinitionVersion_Logger struct { // 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 diff --git a/cloudformation/greengrass/aws-greengrass-resourcedefinition.go b/cloudformation/greengrass/aws-greengrass-resourcedefinition.go index fa226171b1..f185303d32 100644 --- a/cloudformation/greengrass/aws-greengrass-resourcedefinition.go +++ b/cloudformation/greengrass/aws-greengrass-resourcedefinition.go @@ -35,6 +35,9 @@ type ResourceDefinition struct { // 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 @@ -52,12 +55,14 @@ func (r ResourceDefinition) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -71,6 +76,7 @@ func (r *ResourceDefinition) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -94,5 +100,8 @@ func (r *ResourceDefinition) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/greengrass/aws-greengrass-resourcedefinition_groupownersetting.go b/cloudformation/greengrass/aws-greengrass-resourcedefinition_groupownersetting.go index a8b56289d9..a9d189c089 100644 --- a/cloudformation/greengrass/aws-greengrass-resourcedefinition_groupownersetting.go +++ b/cloudformation/greengrass/aws-greengrass-resourcedefinition_groupownersetting.go @@ -26,6 +26,9 @@ type ResourceDefinition_GroupOwnerSetting struct { // 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 diff --git a/cloudformation/greengrass/aws-greengrass-resourcedefinition_localdeviceresourcedata.go b/cloudformation/greengrass/aws-greengrass-resourcedefinition_localdeviceresourcedata.go index c5f2963d80..311a2345f4 100644 --- a/cloudformation/greengrass/aws-greengrass-resourcedefinition_localdeviceresourcedata.go +++ b/cloudformation/greengrass/aws-greengrass-resourcedefinition_localdeviceresourcedata.go @@ -26,6 +26,9 @@ type ResourceDefinition_LocalDeviceResourceData struct { // 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 diff --git a/cloudformation/greengrass/aws-greengrass-resourcedefinition_localvolumeresourcedata.go b/cloudformation/greengrass/aws-greengrass-resourcedefinition_localvolumeresourcedata.go index 275877f250..ef0153ddfb 100644 --- a/cloudformation/greengrass/aws-greengrass-resourcedefinition_localvolumeresourcedata.go +++ b/cloudformation/greengrass/aws-greengrass-resourcedefinition_localvolumeresourcedata.go @@ -31,6 +31,9 @@ type ResourceDefinition_LocalVolumeResourceData struct { // 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 diff --git a/cloudformation/greengrass/aws-greengrass-resourcedefinition_resourcedatacontainer.go b/cloudformation/greengrass/aws-greengrass-resourcedefinition_resourcedatacontainer.go index 6c826aaa99..63c1d8fc6a 100644 --- a/cloudformation/greengrass/aws-greengrass-resourcedefinition_resourcedatacontainer.go +++ b/cloudformation/greengrass/aws-greengrass-resourcedefinition_resourcedatacontainer.go @@ -41,6 +41,9 @@ type ResourceDefinition_ResourceDataContainer struct { // 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 diff --git a/cloudformation/greengrass/aws-greengrass-resourcedefinition_resourcedefinitionversion.go b/cloudformation/greengrass/aws-greengrass-resourcedefinition_resourcedefinitionversion.go index 226a66e83f..93fcd07050 100644 --- a/cloudformation/greengrass/aws-greengrass-resourcedefinition_resourcedefinitionversion.go +++ b/cloudformation/greengrass/aws-greengrass-resourcedefinition_resourcedefinitionversion.go @@ -21,6 +21,9 @@ type ResourceDefinition_ResourceDefinitionVersion struct { // 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 diff --git a/cloudformation/greengrass/aws-greengrass-resourcedefinition_resourceinstance.go b/cloudformation/greengrass/aws-greengrass-resourcedefinition_resourceinstance.go index 246d9389fd..51770d2fba 100644 --- a/cloudformation/greengrass/aws-greengrass-resourcedefinition_resourceinstance.go +++ b/cloudformation/greengrass/aws-greengrass-resourcedefinition_resourceinstance.go @@ -31,6 +31,9 @@ type ResourceDefinition_ResourceInstance struct { // 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 diff --git a/cloudformation/greengrass/aws-greengrass-resourcedefinition_s3machinelearningmodelresourcedata.go b/cloudformation/greengrass/aws-greengrass-resourcedefinition_s3machinelearningmodelresourcedata.go index 92decd03d9..ae8ee1eb6f 100644 --- a/cloudformation/greengrass/aws-greengrass-resourcedefinition_s3machinelearningmodelresourcedata.go +++ b/cloudformation/greengrass/aws-greengrass-resourcedefinition_s3machinelearningmodelresourcedata.go @@ -26,6 +26,9 @@ type ResourceDefinition_S3MachineLearningModelResourceData struct { // 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 diff --git a/cloudformation/greengrass/aws-greengrass-resourcedefinition_sagemakermachinelearningmodelresourcedata.go b/cloudformation/greengrass/aws-greengrass-resourcedefinition_sagemakermachinelearningmodelresourcedata.go index 2dfbc7d0b9..6a1e9d7405 100644 --- a/cloudformation/greengrass/aws-greengrass-resourcedefinition_sagemakermachinelearningmodelresourcedata.go +++ b/cloudformation/greengrass/aws-greengrass-resourcedefinition_sagemakermachinelearningmodelresourcedata.go @@ -26,6 +26,9 @@ type ResourceDefinition_SageMakerMachineLearningModelResourceData struct { // 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 diff --git a/cloudformation/greengrass/aws-greengrass-resourcedefinition_secretsmanagersecretresourcedata.go b/cloudformation/greengrass/aws-greengrass-resourcedefinition_secretsmanagersecretresourcedata.go index 07947807bc..105f7d6d7c 100644 --- a/cloudformation/greengrass/aws-greengrass-resourcedefinition_secretsmanagersecretresourcedata.go +++ b/cloudformation/greengrass/aws-greengrass-resourcedefinition_secretsmanagersecretresourcedata.go @@ -26,6 +26,9 @@ type ResourceDefinition_SecretsManagerSecretResourceData struct { // 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 diff --git a/cloudformation/greengrass/aws-greengrass-resourcedefinitionversion.go b/cloudformation/greengrass/aws-greengrass-resourcedefinitionversion.go index 7909585e42..0a3926203a 100644 --- a/cloudformation/greengrass/aws-greengrass-resourcedefinitionversion.go +++ b/cloudformation/greengrass/aws-greengrass-resourcedefinitionversion.go @@ -30,6 +30,9 @@ type ResourceDefinitionVersion struct { // 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 @@ -47,12 +50,14 @@ func (r ResourceDefinitionVersion) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -66,6 +71,7 @@ func (r *ResourceDefinitionVersion) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -89,5 +95,8 @@ func (r *ResourceDefinitionVersion) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/greengrass/aws-greengrass-resourcedefinitionversion_groupownersetting.go b/cloudformation/greengrass/aws-greengrass-resourcedefinitionversion_groupownersetting.go index de47c4b7f7..598897a571 100644 --- a/cloudformation/greengrass/aws-greengrass-resourcedefinitionversion_groupownersetting.go +++ b/cloudformation/greengrass/aws-greengrass-resourcedefinitionversion_groupownersetting.go @@ -26,6 +26,9 @@ type ResourceDefinitionVersion_GroupOwnerSetting struct { // 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 diff --git a/cloudformation/greengrass/aws-greengrass-resourcedefinitionversion_localdeviceresourcedata.go b/cloudformation/greengrass/aws-greengrass-resourcedefinitionversion_localdeviceresourcedata.go index 1e2444925c..40b2135526 100644 --- a/cloudformation/greengrass/aws-greengrass-resourcedefinitionversion_localdeviceresourcedata.go +++ b/cloudformation/greengrass/aws-greengrass-resourcedefinitionversion_localdeviceresourcedata.go @@ -26,6 +26,9 @@ type ResourceDefinitionVersion_LocalDeviceResourceData struct { // 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 diff --git a/cloudformation/greengrass/aws-greengrass-resourcedefinitionversion_localvolumeresourcedata.go b/cloudformation/greengrass/aws-greengrass-resourcedefinitionversion_localvolumeresourcedata.go index 6af06ede9c..a1a650e5c8 100644 --- a/cloudformation/greengrass/aws-greengrass-resourcedefinitionversion_localvolumeresourcedata.go +++ b/cloudformation/greengrass/aws-greengrass-resourcedefinitionversion_localvolumeresourcedata.go @@ -31,6 +31,9 @@ type ResourceDefinitionVersion_LocalVolumeResourceData struct { // 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 diff --git a/cloudformation/greengrass/aws-greengrass-resourcedefinitionversion_resourcedatacontainer.go b/cloudformation/greengrass/aws-greengrass-resourcedefinitionversion_resourcedatacontainer.go index 37a378e588..b5360caa27 100644 --- a/cloudformation/greengrass/aws-greengrass-resourcedefinitionversion_resourcedatacontainer.go +++ b/cloudformation/greengrass/aws-greengrass-resourcedefinitionversion_resourcedatacontainer.go @@ -41,6 +41,9 @@ type ResourceDefinitionVersion_ResourceDataContainer struct { // 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 diff --git a/cloudformation/greengrass/aws-greengrass-resourcedefinitionversion_resourceinstance.go b/cloudformation/greengrass/aws-greengrass-resourcedefinitionversion_resourceinstance.go index ce72cdb915..0237e8a932 100644 --- a/cloudformation/greengrass/aws-greengrass-resourcedefinitionversion_resourceinstance.go +++ b/cloudformation/greengrass/aws-greengrass-resourcedefinitionversion_resourceinstance.go @@ -31,6 +31,9 @@ type ResourceDefinitionVersion_ResourceInstance struct { // 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 diff --git a/cloudformation/greengrass/aws-greengrass-resourcedefinitionversion_s3machinelearningmodelresourcedata.go b/cloudformation/greengrass/aws-greengrass-resourcedefinitionversion_s3machinelearningmodelresourcedata.go index 30fe00dc5c..5d9713403d 100644 --- a/cloudformation/greengrass/aws-greengrass-resourcedefinitionversion_s3machinelearningmodelresourcedata.go +++ b/cloudformation/greengrass/aws-greengrass-resourcedefinitionversion_s3machinelearningmodelresourcedata.go @@ -26,6 +26,9 @@ type ResourceDefinitionVersion_S3MachineLearningModelResourceData struct { // 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 diff --git a/cloudformation/greengrass/aws-greengrass-resourcedefinitionversion_sagemakermachinelearningmodelresourcedata.go b/cloudformation/greengrass/aws-greengrass-resourcedefinitionversion_sagemakermachinelearningmodelresourcedata.go index 90919fc586..b64bc6ec61 100644 --- a/cloudformation/greengrass/aws-greengrass-resourcedefinitionversion_sagemakermachinelearningmodelresourcedata.go +++ b/cloudformation/greengrass/aws-greengrass-resourcedefinitionversion_sagemakermachinelearningmodelresourcedata.go @@ -26,6 +26,9 @@ type ResourceDefinitionVersion_SageMakerMachineLearningModelResourceData struct // 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 diff --git a/cloudformation/greengrass/aws-greengrass-resourcedefinitionversion_secretsmanagersecretresourcedata.go b/cloudformation/greengrass/aws-greengrass-resourcedefinitionversion_secretsmanagersecretresourcedata.go index 95d963020a..dc12a76fbb 100644 --- a/cloudformation/greengrass/aws-greengrass-resourcedefinitionversion_secretsmanagersecretresourcedata.go +++ b/cloudformation/greengrass/aws-greengrass-resourcedefinitionversion_secretsmanagersecretresourcedata.go @@ -26,6 +26,9 @@ type ResourceDefinitionVersion_SecretsManagerSecretResourceData struct { // 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 diff --git a/cloudformation/greengrass/aws-greengrass-subscriptiondefinition.go b/cloudformation/greengrass/aws-greengrass-subscriptiondefinition.go index 0b70326da6..d19f647ea2 100644 --- a/cloudformation/greengrass/aws-greengrass-subscriptiondefinition.go +++ b/cloudformation/greengrass/aws-greengrass-subscriptiondefinition.go @@ -35,6 +35,9 @@ type SubscriptionDefinition struct { // 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 @@ -52,12 +55,14 @@ func (r SubscriptionDefinition) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -71,6 +76,7 @@ func (r *SubscriptionDefinition) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -94,5 +100,8 @@ func (r *SubscriptionDefinition) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/greengrass/aws-greengrass-subscriptiondefinition_subscription.go b/cloudformation/greengrass/aws-greengrass-subscriptiondefinition_subscription.go index 146339d1a3..88a16a4fda 100644 --- a/cloudformation/greengrass/aws-greengrass-subscriptiondefinition_subscription.go +++ b/cloudformation/greengrass/aws-greengrass-subscriptiondefinition_subscription.go @@ -36,6 +36,9 @@ type SubscriptionDefinition_Subscription struct { // 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 diff --git a/cloudformation/greengrass/aws-greengrass-subscriptiondefinition_subscriptiondefinitionversion.go b/cloudformation/greengrass/aws-greengrass-subscriptiondefinition_subscriptiondefinitionversion.go index 772c82ab30..c3f04cf590 100644 --- a/cloudformation/greengrass/aws-greengrass-subscriptiondefinition_subscriptiondefinitionversion.go +++ b/cloudformation/greengrass/aws-greengrass-subscriptiondefinition_subscriptiondefinitionversion.go @@ -21,6 +21,9 @@ type SubscriptionDefinition_SubscriptionDefinitionVersion struct { // 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 diff --git a/cloudformation/greengrass/aws-greengrass-subscriptiondefinitionversion.go b/cloudformation/greengrass/aws-greengrass-subscriptiondefinitionversion.go index ed38fe1f8e..9778a312b7 100644 --- a/cloudformation/greengrass/aws-greengrass-subscriptiondefinitionversion.go +++ b/cloudformation/greengrass/aws-greengrass-subscriptiondefinitionversion.go @@ -30,6 +30,9 @@ type SubscriptionDefinitionVersion struct { // 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 @@ -47,12 +50,14 @@ func (r SubscriptionDefinitionVersion) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -66,6 +71,7 @@ func (r *SubscriptionDefinitionVersion) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -89,5 +95,8 @@ func (r *SubscriptionDefinitionVersion) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/greengrass/aws-greengrass-subscriptiondefinitionversion_subscription.go b/cloudformation/greengrass/aws-greengrass-subscriptiondefinitionversion_subscription.go index 0569a0949c..5e944a7626 100644 --- a/cloudformation/greengrass/aws-greengrass-subscriptiondefinitionversion_subscription.go +++ b/cloudformation/greengrass/aws-greengrass-subscriptiondefinitionversion_subscription.go @@ -36,6 +36,9 @@ type SubscriptionDefinitionVersion_Subscription struct { // 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 diff --git a/cloudformation/guardduty/aws-guardduty-detector.go b/cloudformation/guardduty/aws-guardduty-detector.go index ff2974d817..65b002ed93 100644 --- a/cloudformation/guardduty/aws-guardduty-detector.go +++ b/cloudformation/guardduty/aws-guardduty-detector.go @@ -30,6 +30,9 @@ type Detector struct { // 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 @@ -47,12 +50,14 @@ func (r Detector) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -66,6 +71,7 @@ func (r *Detector) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -89,5 +95,8 @@ func (r *Detector) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/guardduty/aws-guardduty-filter.go b/cloudformation/guardduty/aws-guardduty-filter.go index 1c8b5a28bd..4db9e4fec2 100644 --- a/cloudformation/guardduty/aws-guardduty-filter.go +++ b/cloudformation/guardduty/aws-guardduty-filter.go @@ -50,6 +50,9 @@ type Filter struct { // 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 @@ -67,12 +70,14 @@ func (r Filter) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -86,6 +91,7 @@ func (r *Filter) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -109,5 +115,8 @@ func (r *Filter) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/guardduty/aws-guardduty-filter_condition.go b/cloudformation/guardduty/aws-guardduty-filter_condition.go index 8cc3e48421..6e35805a75 100644 --- a/cloudformation/guardduty/aws-guardduty-filter_condition.go +++ b/cloudformation/guardduty/aws-guardduty-filter_condition.go @@ -41,6 +41,9 @@ type Filter_Condition struct { // 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 diff --git a/cloudformation/guardduty/aws-guardduty-filter_findingcriteria.go b/cloudformation/guardduty/aws-guardduty-filter_findingcriteria.go index eb88bb70e3..15b4367a95 100644 --- a/cloudformation/guardduty/aws-guardduty-filter_findingcriteria.go +++ b/cloudformation/guardduty/aws-guardduty-filter_findingcriteria.go @@ -26,6 +26,9 @@ type Filter_FindingCriteria struct { // 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 diff --git a/cloudformation/guardduty/aws-guardduty-ipset.go b/cloudformation/guardduty/aws-guardduty-ipset.go index 450468bfee..8a22e6aa52 100644 --- a/cloudformation/guardduty/aws-guardduty-ipset.go +++ b/cloudformation/guardduty/aws-guardduty-ipset.go @@ -45,6 +45,9 @@ type IPSet struct { // 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 @@ -62,12 +65,14 @@ func (r IPSet) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -81,6 +86,7 @@ func (r *IPSet) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -104,5 +110,8 @@ func (r *IPSet) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/guardduty/aws-guardduty-master.go b/cloudformation/guardduty/aws-guardduty-master.go index ccb560c22b..6bc9fa5898 100644 --- a/cloudformation/guardduty/aws-guardduty-master.go +++ b/cloudformation/guardduty/aws-guardduty-master.go @@ -35,6 +35,9 @@ type Master struct { // 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 @@ -52,12 +55,14 @@ func (r Master) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -71,6 +76,7 @@ func (r *Master) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -94,5 +100,8 @@ func (r *Master) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/guardduty/aws-guardduty-member.go b/cloudformation/guardduty/aws-guardduty-member.go index 3abe1a9878..e91160dead 100644 --- a/cloudformation/guardduty/aws-guardduty-member.go +++ b/cloudformation/guardduty/aws-guardduty-member.go @@ -50,6 +50,9 @@ type Member struct { // 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 @@ -67,12 +70,14 @@ func (r Member) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -86,6 +91,7 @@ func (r *Member) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -109,5 +115,8 @@ func (r *Member) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/guardduty/aws-guardduty-threatintelset.go b/cloudformation/guardduty/aws-guardduty-threatintelset.go index fae46ccd6e..ec26a22404 100644 --- a/cloudformation/guardduty/aws-guardduty-threatintelset.go +++ b/cloudformation/guardduty/aws-guardduty-threatintelset.go @@ -45,6 +45,9 @@ type ThreatIntelSet struct { // 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 @@ -62,12 +65,14 @@ func (r ThreatIntelSet) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -81,6 +86,7 @@ func (r *ThreatIntelSet) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -104,5 +110,8 @@ func (r *ThreatIntelSet) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/iam/aws-iam-accesskey.go b/cloudformation/iam/aws-iam-accesskey.go index 0ff06b5acd..0c79379484 100644 --- a/cloudformation/iam/aws-iam-accesskey.go +++ b/cloudformation/iam/aws-iam-accesskey.go @@ -35,6 +35,9 @@ type AccessKey struct { // 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 @@ -52,12 +55,14 @@ func (r AccessKey) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -71,6 +76,7 @@ func (r *AccessKey) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -94,5 +100,8 @@ func (r *AccessKey) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/iam/aws-iam-group.go b/cloudformation/iam/aws-iam-group.go index c8cac967b3..b0883157c5 100644 --- a/cloudformation/iam/aws-iam-group.go +++ b/cloudformation/iam/aws-iam-group.go @@ -40,6 +40,9 @@ type Group struct { // 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 @@ -57,12 +60,14 @@ func (r Group) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -76,6 +81,7 @@ func (r *Group) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -99,5 +105,8 @@ func (r *Group) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/iam/aws-iam-group_policy.go b/cloudformation/iam/aws-iam-group_policy.go index 8b37d0f3cb..fcfd8a99a3 100644 --- a/cloudformation/iam/aws-iam-group_policy.go +++ b/cloudformation/iam/aws-iam-group_policy.go @@ -26,6 +26,9 @@ type Group_Policy struct { // 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 diff --git a/cloudformation/iam/aws-iam-instanceprofile.go b/cloudformation/iam/aws-iam-instanceprofile.go index 5d0edda09e..f396ca2689 100644 --- a/cloudformation/iam/aws-iam-instanceprofile.go +++ b/cloudformation/iam/aws-iam-instanceprofile.go @@ -35,6 +35,9 @@ type InstanceProfile struct { // 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 @@ -52,12 +55,14 @@ func (r InstanceProfile) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -71,6 +76,7 @@ func (r *InstanceProfile) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -94,5 +100,8 @@ func (r *InstanceProfile) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/iam/aws-iam-managedpolicy.go b/cloudformation/iam/aws-iam-managedpolicy.go index 5b2b811fba..07a84bc28e 100644 --- a/cloudformation/iam/aws-iam-managedpolicy.go +++ b/cloudformation/iam/aws-iam-managedpolicy.go @@ -55,6 +55,9 @@ type ManagedPolicy struct { // 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 @@ -72,12 +75,14 @@ func (r ManagedPolicy) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -91,6 +96,7 @@ func (r *ManagedPolicy) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -114,5 +120,8 @@ func (r *ManagedPolicy) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/iam/aws-iam-policy.go b/cloudformation/iam/aws-iam-policy.go index bd218d92ea..dfc67739f3 100644 --- a/cloudformation/iam/aws-iam-policy.go +++ b/cloudformation/iam/aws-iam-policy.go @@ -45,6 +45,9 @@ type Policy struct { // 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 @@ -62,12 +65,14 @@ func (r Policy) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -81,6 +86,7 @@ func (r *Policy) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -104,5 +110,8 @@ func (r *Policy) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/iam/aws-iam-role.go b/cloudformation/iam/aws-iam-role.go index 61d2108ce1..34ca5ef423 100644 --- a/cloudformation/iam/aws-iam-role.go +++ b/cloudformation/iam/aws-iam-role.go @@ -66,6 +66,9 @@ type Role struct { // 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 @@ -83,12 +86,14 @@ func (r Role) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -102,6 +107,7 @@ func (r *Role) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -125,5 +131,8 @@ func (r *Role) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/iam/aws-iam-role_policy.go b/cloudformation/iam/aws-iam-role_policy.go index 600ea86b63..4d0ca398dd 100644 --- a/cloudformation/iam/aws-iam-role_policy.go +++ b/cloudformation/iam/aws-iam-role_policy.go @@ -26,6 +26,9 @@ type Role_Policy struct { // 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 diff --git a/cloudformation/iam/aws-iam-servicelinkedrole.go b/cloudformation/iam/aws-iam-servicelinkedrole.go index 5a47c1bd00..c73af53d47 100644 --- a/cloudformation/iam/aws-iam-servicelinkedrole.go +++ b/cloudformation/iam/aws-iam-servicelinkedrole.go @@ -35,6 +35,9 @@ type ServiceLinkedRole struct { // 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 @@ -52,12 +55,14 @@ func (r ServiceLinkedRole) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -71,6 +76,7 @@ func (r *ServiceLinkedRole) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -94,5 +100,8 @@ func (r *ServiceLinkedRole) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/iam/aws-iam-user.go b/cloudformation/iam/aws-iam-user.go index db88bacead..2e10ae5489 100644 --- a/cloudformation/iam/aws-iam-user.go +++ b/cloudformation/iam/aws-iam-user.go @@ -61,6 +61,9 @@ type User struct { // 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 @@ -78,12 +81,14 @@ func (r User) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -97,6 +102,7 @@ func (r *User) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -120,5 +126,8 @@ func (r *User) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/iam/aws-iam-user_loginprofile.go b/cloudformation/iam/aws-iam-user_loginprofile.go index 257183c2e0..e486b1c43c 100644 --- a/cloudformation/iam/aws-iam-user_loginprofile.go +++ b/cloudformation/iam/aws-iam-user_loginprofile.go @@ -26,6 +26,9 @@ type User_LoginProfile struct { // 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 diff --git a/cloudformation/iam/aws-iam-user_policy.go b/cloudformation/iam/aws-iam-user_policy.go index f926b34558..1879a57edf 100644 --- a/cloudformation/iam/aws-iam-user_policy.go +++ b/cloudformation/iam/aws-iam-user_policy.go @@ -26,6 +26,9 @@ type User_Policy struct { // 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 diff --git a/cloudformation/iam/aws-iam-usertogroupaddition.go b/cloudformation/iam/aws-iam-usertogroupaddition.go index 95a7d77e33..78a2a2c114 100644 --- a/cloudformation/iam/aws-iam-usertogroupaddition.go +++ b/cloudformation/iam/aws-iam-usertogroupaddition.go @@ -30,6 +30,9 @@ type UserToGroupAddition struct { // 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 @@ -47,12 +50,14 @@ func (r UserToGroupAddition) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -66,6 +71,7 @@ func (r *UserToGroupAddition) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -89,5 +95,8 @@ func (r *UserToGroupAddition) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/inspector/aws-inspector-assessmenttarget.go b/cloudformation/inspector/aws-inspector-assessmenttarget.go index fbc9638660..e0896e091f 100644 --- a/cloudformation/inspector/aws-inspector-assessmenttarget.go +++ b/cloudformation/inspector/aws-inspector-assessmenttarget.go @@ -30,6 +30,9 @@ type AssessmentTarget struct { // 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 @@ -47,12 +50,14 @@ func (r AssessmentTarget) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -66,6 +71,7 @@ func (r *AssessmentTarget) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -89,5 +95,8 @@ func (r *AssessmentTarget) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/inspector/aws-inspector-assessmenttemplate.go b/cloudformation/inspector/aws-inspector-assessmenttemplate.go index 9314e08181..8e29fb2b6a 100644 --- a/cloudformation/inspector/aws-inspector-assessmenttemplate.go +++ b/cloudformation/inspector/aws-inspector-assessmenttemplate.go @@ -46,6 +46,9 @@ type AssessmentTemplate struct { // 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 @@ -63,12 +66,14 @@ func (r AssessmentTemplate) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -82,6 +87,7 @@ func (r *AssessmentTemplate) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -105,5 +111,8 @@ func (r *AssessmentTemplate) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/inspector/aws-inspector-resourcegroup.go b/cloudformation/inspector/aws-inspector-resourcegroup.go index dc3607ca29..756426ae09 100644 --- a/cloudformation/inspector/aws-inspector-resourcegroup.go +++ b/cloudformation/inspector/aws-inspector-resourcegroup.go @@ -26,6 +26,9 @@ type ResourceGroup struct { // 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 @@ -43,12 +46,14 @@ func (r ResourceGroup) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -62,6 +67,7 @@ func (r *ResourceGroup) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -85,5 +91,8 @@ func (r *ResourceGroup) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/iot/aws-iot-certificate.go b/cloudformation/iot/aws-iot-certificate.go index f225dd2503..f7cdf15189 100644 --- a/cloudformation/iot/aws-iot-certificate.go +++ b/cloudformation/iot/aws-iot-certificate.go @@ -30,6 +30,9 @@ type Certificate struct { // 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 @@ -47,12 +50,14 @@ func (r Certificate) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -66,6 +71,7 @@ func (r *Certificate) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -89,5 +95,8 @@ func (r *Certificate) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/iot/aws-iot-policy.go b/cloudformation/iot/aws-iot-policy.go index 627a195ecf..8d392e7be7 100644 --- a/cloudformation/iot/aws-iot-policy.go +++ b/cloudformation/iot/aws-iot-policy.go @@ -30,6 +30,9 @@ type Policy struct { // 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 @@ -47,12 +50,14 @@ func (r Policy) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -66,6 +71,7 @@ func (r *Policy) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -89,5 +95,8 @@ func (r *Policy) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/iot/aws-iot-policyprincipalattachment.go b/cloudformation/iot/aws-iot-policyprincipalattachment.go index aa4eecdbcc..13889329b4 100644 --- a/cloudformation/iot/aws-iot-policyprincipalattachment.go +++ b/cloudformation/iot/aws-iot-policyprincipalattachment.go @@ -30,6 +30,9 @@ type PolicyPrincipalAttachment struct { // 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 @@ -47,12 +50,14 @@ func (r PolicyPrincipalAttachment) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -66,6 +71,7 @@ func (r *PolicyPrincipalAttachment) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -89,5 +95,8 @@ func (r *PolicyPrincipalAttachment) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/iot/aws-iot-thing.go b/cloudformation/iot/aws-iot-thing.go index 1143419acf..c5b60f13f8 100644 --- a/cloudformation/iot/aws-iot-thing.go +++ b/cloudformation/iot/aws-iot-thing.go @@ -30,6 +30,9 @@ type Thing struct { // 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 @@ -47,12 +50,14 @@ func (r Thing) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -66,6 +71,7 @@ func (r *Thing) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -89,5 +95,8 @@ func (r *Thing) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/iot/aws-iot-thing_attributepayload.go b/cloudformation/iot/aws-iot-thing_attributepayload.go index 2e8976e936..df95f8efd2 100644 --- a/cloudformation/iot/aws-iot-thing_attributepayload.go +++ b/cloudformation/iot/aws-iot-thing_attributepayload.go @@ -21,6 +21,9 @@ type Thing_AttributePayload struct { // 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 diff --git a/cloudformation/iot/aws-iot-thingprincipalattachment.go b/cloudformation/iot/aws-iot-thingprincipalattachment.go index cf6a8c2057..0af05b81d8 100644 --- a/cloudformation/iot/aws-iot-thingprincipalattachment.go +++ b/cloudformation/iot/aws-iot-thingprincipalattachment.go @@ -30,6 +30,9 @@ type ThingPrincipalAttachment struct { // 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 @@ -47,12 +50,14 @@ func (r ThingPrincipalAttachment) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -66,6 +71,7 @@ func (r *ThingPrincipalAttachment) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -89,5 +95,8 @@ func (r *ThingPrincipalAttachment) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/iot/aws-iot-topicrule.go b/cloudformation/iot/aws-iot-topicrule.go index 2112db5e00..74c3c67c64 100644 --- a/cloudformation/iot/aws-iot-topicrule.go +++ b/cloudformation/iot/aws-iot-topicrule.go @@ -30,6 +30,9 @@ type TopicRule struct { // 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 @@ -47,12 +50,14 @@ func (r TopicRule) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -66,6 +71,7 @@ func (r *TopicRule) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -89,5 +95,8 @@ func (r *TopicRule) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/iot/aws-iot-topicrule_action.go b/cloudformation/iot/aws-iot-topicrule_action.go index 46c6cd4585..02bb35d206 100644 --- a/cloudformation/iot/aws-iot-topicrule_action.go +++ b/cloudformation/iot/aws-iot-topicrule_action.go @@ -86,6 +86,9 @@ type TopicRule_Action struct { // 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 diff --git a/cloudformation/iot/aws-iot-topicrule_cloudwatchalarmaction.go b/cloudformation/iot/aws-iot-topicrule_cloudwatchalarmaction.go index 603ed37690..74d5d4c5b0 100644 --- a/cloudformation/iot/aws-iot-topicrule_cloudwatchalarmaction.go +++ b/cloudformation/iot/aws-iot-topicrule_cloudwatchalarmaction.go @@ -36,6 +36,9 @@ type TopicRule_CloudwatchAlarmAction struct { // 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 diff --git a/cloudformation/iot/aws-iot-topicrule_cloudwatchmetricaction.go b/cloudformation/iot/aws-iot-topicrule_cloudwatchmetricaction.go index a5c290319c..4bc0b858a3 100644 --- a/cloudformation/iot/aws-iot-topicrule_cloudwatchmetricaction.go +++ b/cloudformation/iot/aws-iot-topicrule_cloudwatchmetricaction.go @@ -46,6 +46,9 @@ type TopicRule_CloudwatchMetricAction struct { // 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 diff --git a/cloudformation/iot/aws-iot-topicrule_dynamodbaction.go b/cloudformation/iot/aws-iot-topicrule_dynamodbaction.go index 05cf752001..5998901c6c 100644 --- a/cloudformation/iot/aws-iot-topicrule_dynamodbaction.go +++ b/cloudformation/iot/aws-iot-topicrule_dynamodbaction.go @@ -61,6 +61,9 @@ type TopicRule_DynamoDBAction struct { // 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 diff --git a/cloudformation/iot/aws-iot-topicrule_dynamodbv2action.go b/cloudformation/iot/aws-iot-topicrule_dynamodbv2action.go index 661d232f34..7b148b2cbc 100644 --- a/cloudformation/iot/aws-iot-topicrule_dynamodbv2action.go +++ b/cloudformation/iot/aws-iot-topicrule_dynamodbv2action.go @@ -26,6 +26,9 @@ type TopicRule_DynamoDBv2Action struct { // 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 diff --git a/cloudformation/iot/aws-iot-topicrule_elasticsearchaction.go b/cloudformation/iot/aws-iot-topicrule_elasticsearchaction.go index c63658f3c7..4072aecfde 100644 --- a/cloudformation/iot/aws-iot-topicrule_elasticsearchaction.go +++ b/cloudformation/iot/aws-iot-topicrule_elasticsearchaction.go @@ -41,6 +41,9 @@ type TopicRule_ElasticsearchAction struct { // 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 diff --git a/cloudformation/iot/aws-iot-topicrule_firehoseaction.go b/cloudformation/iot/aws-iot-topicrule_firehoseaction.go index 40abe92b4f..41f09b5d65 100644 --- a/cloudformation/iot/aws-iot-topicrule_firehoseaction.go +++ b/cloudformation/iot/aws-iot-topicrule_firehoseaction.go @@ -31,6 +31,9 @@ type TopicRule_FirehoseAction struct { // 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 diff --git a/cloudformation/iot/aws-iot-topicrule_iotanalyticsaction.go b/cloudformation/iot/aws-iot-topicrule_iotanalyticsaction.go index 02da686878..a48b84980b 100644 --- a/cloudformation/iot/aws-iot-topicrule_iotanalyticsaction.go +++ b/cloudformation/iot/aws-iot-topicrule_iotanalyticsaction.go @@ -26,6 +26,9 @@ type TopicRule_IotAnalyticsAction struct { // 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 diff --git a/cloudformation/iot/aws-iot-topicrule_kinesisaction.go b/cloudformation/iot/aws-iot-topicrule_kinesisaction.go index 99b4a1e8f4..b515838154 100644 --- a/cloudformation/iot/aws-iot-topicrule_kinesisaction.go +++ b/cloudformation/iot/aws-iot-topicrule_kinesisaction.go @@ -31,6 +31,9 @@ type TopicRule_KinesisAction struct { // 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 diff --git a/cloudformation/iot/aws-iot-topicrule_lambdaaction.go b/cloudformation/iot/aws-iot-topicrule_lambdaaction.go index 00cae38445..c3dfe7773b 100644 --- a/cloudformation/iot/aws-iot-topicrule_lambdaaction.go +++ b/cloudformation/iot/aws-iot-topicrule_lambdaaction.go @@ -21,6 +21,9 @@ type TopicRule_LambdaAction struct { // 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 diff --git a/cloudformation/iot/aws-iot-topicrule_putiteminput.go b/cloudformation/iot/aws-iot-topicrule_putiteminput.go index 452c5f39d1..d57f276bed 100644 --- a/cloudformation/iot/aws-iot-topicrule_putiteminput.go +++ b/cloudformation/iot/aws-iot-topicrule_putiteminput.go @@ -21,6 +21,9 @@ type TopicRule_PutItemInput struct { // 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 diff --git a/cloudformation/iot/aws-iot-topicrule_republishaction.go b/cloudformation/iot/aws-iot-topicrule_republishaction.go index 28a85bbcff..819e386d0a 100644 --- a/cloudformation/iot/aws-iot-topicrule_republishaction.go +++ b/cloudformation/iot/aws-iot-topicrule_republishaction.go @@ -26,6 +26,9 @@ type TopicRule_RepublishAction struct { // 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 diff --git a/cloudformation/iot/aws-iot-topicrule_s3action.go b/cloudformation/iot/aws-iot-topicrule_s3action.go index ba78d7313c..5218245e93 100644 --- a/cloudformation/iot/aws-iot-topicrule_s3action.go +++ b/cloudformation/iot/aws-iot-topicrule_s3action.go @@ -31,6 +31,9 @@ type TopicRule_S3Action struct { // 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 diff --git a/cloudformation/iot/aws-iot-topicrule_snsaction.go b/cloudformation/iot/aws-iot-topicrule_snsaction.go index eb98bc88d2..5d4392f935 100644 --- a/cloudformation/iot/aws-iot-topicrule_snsaction.go +++ b/cloudformation/iot/aws-iot-topicrule_snsaction.go @@ -31,6 +31,9 @@ type TopicRule_SnsAction struct { // 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 diff --git a/cloudformation/iot/aws-iot-topicrule_sqsaction.go b/cloudformation/iot/aws-iot-topicrule_sqsaction.go index c925dc8ec6..f38701b7ac 100644 --- a/cloudformation/iot/aws-iot-topicrule_sqsaction.go +++ b/cloudformation/iot/aws-iot-topicrule_sqsaction.go @@ -31,6 +31,9 @@ type TopicRule_SqsAction struct { // 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 diff --git a/cloudformation/iot/aws-iot-topicrule_stepfunctionsaction.go b/cloudformation/iot/aws-iot-topicrule_stepfunctionsaction.go index c7d84e1c8a..c8229f922d 100644 --- a/cloudformation/iot/aws-iot-topicrule_stepfunctionsaction.go +++ b/cloudformation/iot/aws-iot-topicrule_stepfunctionsaction.go @@ -31,6 +31,9 @@ type TopicRule_StepFunctionsAction struct { // 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 diff --git a/cloudformation/iot/aws-iot-topicrule_topicrulepayload.go b/cloudformation/iot/aws-iot-topicrule_topicrulepayload.go index 8dc96ebdac..9aeb649b79 100644 --- a/cloudformation/iot/aws-iot-topicrule_topicrulepayload.go +++ b/cloudformation/iot/aws-iot-topicrule_topicrulepayload.go @@ -46,6 +46,9 @@ type TopicRule_TopicRulePayload struct { // 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 diff --git a/cloudformation/iot1click/aws-iot1click-device.go b/cloudformation/iot1click/aws-iot1click-device.go index f2b0eda955..5a6249f106 100644 --- a/cloudformation/iot1click/aws-iot1click-device.go +++ b/cloudformation/iot1click/aws-iot1click-device.go @@ -30,6 +30,9 @@ type Device struct { // 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 @@ -47,12 +50,14 @@ func (r Device) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -66,6 +71,7 @@ func (r *Device) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -89,5 +95,8 @@ func (r *Device) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/iot1click/aws-iot1click-placement.go b/cloudformation/iot1click/aws-iot1click-placement.go index aa92c3fc10..5e07fe035a 100644 --- a/cloudformation/iot1click/aws-iot1click-placement.go +++ b/cloudformation/iot1click/aws-iot1click-placement.go @@ -40,6 +40,9 @@ type Placement struct { // 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 @@ -57,12 +60,14 @@ func (r Placement) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -76,6 +81,7 @@ func (r *Placement) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -99,5 +105,8 @@ func (r *Placement) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/iot1click/aws-iot1click-project.go b/cloudformation/iot1click/aws-iot1click-project.go index ab66cf1740..f63f21ece0 100644 --- a/cloudformation/iot1click/aws-iot1click-project.go +++ b/cloudformation/iot1click/aws-iot1click-project.go @@ -35,6 +35,9 @@ type Project struct { // 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 @@ -52,12 +55,14 @@ func (r Project) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -71,6 +76,7 @@ func (r *Project) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -94,5 +100,8 @@ func (r *Project) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/iot1click/aws-iot1click-project_devicetemplate.go b/cloudformation/iot1click/aws-iot1click-project_devicetemplate.go index fadea0b52b..97297b34ee 100644 --- a/cloudformation/iot1click/aws-iot1click-project_devicetemplate.go +++ b/cloudformation/iot1click/aws-iot1click-project_devicetemplate.go @@ -26,6 +26,9 @@ type Project_DeviceTemplate struct { // 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 diff --git a/cloudformation/iot1click/aws-iot1click-project_placementtemplate.go b/cloudformation/iot1click/aws-iot1click-project_placementtemplate.go index 1388e2aabf..88d8fe6029 100644 --- a/cloudformation/iot1click/aws-iot1click-project_placementtemplate.go +++ b/cloudformation/iot1click/aws-iot1click-project_placementtemplate.go @@ -26,6 +26,9 @@ type Project_PlacementTemplate struct { // 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 diff --git a/cloudformation/iotanalytics/aws-iotanalytics-channel.go b/cloudformation/iotanalytics/aws-iotanalytics-channel.go index 0bbe121dbc..f91ce85674 100644 --- a/cloudformation/iotanalytics/aws-iotanalytics-channel.go +++ b/cloudformation/iotanalytics/aws-iotanalytics-channel.go @@ -41,6 +41,9 @@ type Channel struct { // 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 @@ -58,12 +61,14 @@ func (r Channel) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -77,6 +82,7 @@ func (r *Channel) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -100,5 +106,8 @@ func (r *Channel) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/iotanalytics/aws-iotanalytics-channel_channelstorage.go b/cloudformation/iotanalytics/aws-iotanalytics-channel_channelstorage.go index 8635fcac3b..240f008da5 100644 --- a/cloudformation/iotanalytics/aws-iotanalytics-channel_channelstorage.go +++ b/cloudformation/iotanalytics/aws-iotanalytics-channel_channelstorage.go @@ -26,6 +26,9 @@ type Channel_ChannelStorage struct { // 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 diff --git a/cloudformation/iotanalytics/aws-iotanalytics-channel_customermanageds3.go b/cloudformation/iotanalytics/aws-iotanalytics-channel_customermanageds3.go index c715fceaf0..340ff2e6e1 100644 --- a/cloudformation/iotanalytics/aws-iotanalytics-channel_customermanageds3.go +++ b/cloudformation/iotanalytics/aws-iotanalytics-channel_customermanageds3.go @@ -31,6 +31,9 @@ type Channel_CustomerManagedS3 struct { // 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 diff --git a/cloudformation/iotanalytics/aws-iotanalytics-channel_retentionperiod.go b/cloudformation/iotanalytics/aws-iotanalytics-channel_retentionperiod.go index afeb8fe962..ad5263f3fb 100644 --- a/cloudformation/iotanalytics/aws-iotanalytics-channel_retentionperiod.go +++ b/cloudformation/iotanalytics/aws-iotanalytics-channel_retentionperiod.go @@ -26,6 +26,9 @@ type Channel_RetentionPeriod struct { // 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 diff --git a/cloudformation/iotanalytics/aws-iotanalytics-channel_servicemanageds3.go b/cloudformation/iotanalytics/aws-iotanalytics-channel_servicemanageds3.go index c564860ca8..e43f78e162 100644 --- a/cloudformation/iotanalytics/aws-iotanalytics-channel_servicemanageds3.go +++ b/cloudformation/iotanalytics/aws-iotanalytics-channel_servicemanageds3.go @@ -16,6 +16,9 @@ type Channel_ServiceManagedS3 struct { // 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 diff --git a/cloudformation/iotanalytics/aws-iotanalytics-dataset.go b/cloudformation/iotanalytics/aws-iotanalytics-dataset.go index 312a365ad9..66edd580dd 100644 --- a/cloudformation/iotanalytics/aws-iotanalytics-dataset.go +++ b/cloudformation/iotanalytics/aws-iotanalytics-dataset.go @@ -56,6 +56,9 @@ type Dataset struct { // 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 @@ -73,12 +76,14 @@ func (r Dataset) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -92,6 +97,7 @@ func (r *Dataset) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -115,5 +121,8 @@ func (r *Dataset) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/iotanalytics/aws-iotanalytics-dataset_action.go b/cloudformation/iotanalytics/aws-iotanalytics-dataset_action.go index f24282dc25..231cc9309d 100644 --- a/cloudformation/iotanalytics/aws-iotanalytics-dataset_action.go +++ b/cloudformation/iotanalytics/aws-iotanalytics-dataset_action.go @@ -31,6 +31,9 @@ type Dataset_Action struct { // 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 diff --git a/cloudformation/iotanalytics/aws-iotanalytics-dataset_containeraction.go b/cloudformation/iotanalytics/aws-iotanalytics-dataset_containeraction.go index 4a35cc3409..105a2e700f 100644 --- a/cloudformation/iotanalytics/aws-iotanalytics-dataset_containeraction.go +++ b/cloudformation/iotanalytics/aws-iotanalytics-dataset_containeraction.go @@ -36,6 +36,9 @@ type Dataset_ContainerAction struct { // 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 diff --git a/cloudformation/iotanalytics/aws-iotanalytics-dataset_datasetcontentdeliveryrule.go b/cloudformation/iotanalytics/aws-iotanalytics-dataset_datasetcontentdeliveryrule.go index 086fc49834..3b9f7b4d37 100644 --- a/cloudformation/iotanalytics/aws-iotanalytics-dataset_datasetcontentdeliveryrule.go +++ b/cloudformation/iotanalytics/aws-iotanalytics-dataset_datasetcontentdeliveryrule.go @@ -26,6 +26,9 @@ type Dataset_DatasetContentDeliveryRule struct { // 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 diff --git a/cloudformation/iotanalytics/aws-iotanalytics-dataset_datasetcontentdeliveryruledestination.go b/cloudformation/iotanalytics/aws-iotanalytics-dataset_datasetcontentdeliveryruledestination.go index d3b584b658..50aee30cf7 100644 --- a/cloudformation/iotanalytics/aws-iotanalytics-dataset_datasetcontentdeliveryruledestination.go +++ b/cloudformation/iotanalytics/aws-iotanalytics-dataset_datasetcontentdeliveryruledestination.go @@ -26,6 +26,9 @@ type Dataset_DatasetContentDeliveryRuleDestination struct { // 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 diff --git a/cloudformation/iotanalytics/aws-iotanalytics-dataset_datasetcontentversionvalue.go b/cloudformation/iotanalytics/aws-iotanalytics-dataset_datasetcontentversionvalue.go index 5fe4a2baad..c9a51071d9 100644 --- a/cloudformation/iotanalytics/aws-iotanalytics-dataset_datasetcontentversionvalue.go +++ b/cloudformation/iotanalytics/aws-iotanalytics-dataset_datasetcontentversionvalue.go @@ -21,6 +21,9 @@ type Dataset_DatasetContentVersionValue struct { // 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 diff --git a/cloudformation/iotanalytics/aws-iotanalytics-dataset_deltatime.go b/cloudformation/iotanalytics/aws-iotanalytics-dataset_deltatime.go index f19654e4f1..bcc58543b5 100644 --- a/cloudformation/iotanalytics/aws-iotanalytics-dataset_deltatime.go +++ b/cloudformation/iotanalytics/aws-iotanalytics-dataset_deltatime.go @@ -26,6 +26,9 @@ type Dataset_DeltaTime struct { // 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 diff --git a/cloudformation/iotanalytics/aws-iotanalytics-dataset_filter.go b/cloudformation/iotanalytics/aws-iotanalytics-dataset_filter.go index c943b4e549..9e180ce5bf 100644 --- a/cloudformation/iotanalytics/aws-iotanalytics-dataset_filter.go +++ b/cloudformation/iotanalytics/aws-iotanalytics-dataset_filter.go @@ -21,6 +21,9 @@ type Dataset_Filter struct { // 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 diff --git a/cloudformation/iotanalytics/aws-iotanalytics-dataset_glueconfiguration.go b/cloudformation/iotanalytics/aws-iotanalytics-dataset_glueconfiguration.go index 78a4328f0a..41c09289fc 100644 --- a/cloudformation/iotanalytics/aws-iotanalytics-dataset_glueconfiguration.go +++ b/cloudformation/iotanalytics/aws-iotanalytics-dataset_glueconfiguration.go @@ -26,6 +26,9 @@ type Dataset_GlueConfiguration struct { // 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 diff --git a/cloudformation/iotanalytics/aws-iotanalytics-dataset_ioteventsdestinationconfiguration.go b/cloudformation/iotanalytics/aws-iotanalytics-dataset_ioteventsdestinationconfiguration.go index 4b5490135b..6891b12232 100644 --- a/cloudformation/iotanalytics/aws-iotanalytics-dataset_ioteventsdestinationconfiguration.go +++ b/cloudformation/iotanalytics/aws-iotanalytics-dataset_ioteventsdestinationconfiguration.go @@ -26,6 +26,9 @@ type Dataset_IotEventsDestinationConfiguration struct { // 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 diff --git a/cloudformation/iotanalytics/aws-iotanalytics-dataset_outputfileurivalue.go b/cloudformation/iotanalytics/aws-iotanalytics-dataset_outputfileurivalue.go index 3e6bb89456..e8b9da78bd 100644 --- a/cloudformation/iotanalytics/aws-iotanalytics-dataset_outputfileurivalue.go +++ b/cloudformation/iotanalytics/aws-iotanalytics-dataset_outputfileurivalue.go @@ -21,6 +21,9 @@ type Dataset_OutputFileUriValue struct { // 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 diff --git a/cloudformation/iotanalytics/aws-iotanalytics-dataset_queryaction.go b/cloudformation/iotanalytics/aws-iotanalytics-dataset_queryaction.go index 5eae410039..09ab733e64 100644 --- a/cloudformation/iotanalytics/aws-iotanalytics-dataset_queryaction.go +++ b/cloudformation/iotanalytics/aws-iotanalytics-dataset_queryaction.go @@ -26,6 +26,9 @@ type Dataset_QueryAction struct { // 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 diff --git a/cloudformation/iotanalytics/aws-iotanalytics-dataset_resourceconfiguration.go b/cloudformation/iotanalytics/aws-iotanalytics-dataset_resourceconfiguration.go index 6e27f74169..917db98b4b 100644 --- a/cloudformation/iotanalytics/aws-iotanalytics-dataset_resourceconfiguration.go +++ b/cloudformation/iotanalytics/aws-iotanalytics-dataset_resourceconfiguration.go @@ -26,6 +26,9 @@ type Dataset_ResourceConfiguration struct { // 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 diff --git a/cloudformation/iotanalytics/aws-iotanalytics-dataset_retentionperiod.go b/cloudformation/iotanalytics/aws-iotanalytics-dataset_retentionperiod.go index cc87559fc1..481815c2a9 100644 --- a/cloudformation/iotanalytics/aws-iotanalytics-dataset_retentionperiod.go +++ b/cloudformation/iotanalytics/aws-iotanalytics-dataset_retentionperiod.go @@ -26,6 +26,9 @@ type Dataset_RetentionPeriod struct { // 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 diff --git a/cloudformation/iotanalytics/aws-iotanalytics-dataset_s3destinationconfiguration.go b/cloudformation/iotanalytics/aws-iotanalytics-dataset_s3destinationconfiguration.go index 809e8c434f..9069aade76 100644 --- a/cloudformation/iotanalytics/aws-iotanalytics-dataset_s3destinationconfiguration.go +++ b/cloudformation/iotanalytics/aws-iotanalytics-dataset_s3destinationconfiguration.go @@ -36,6 +36,9 @@ type Dataset_S3DestinationConfiguration struct { // 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 diff --git a/cloudformation/iotanalytics/aws-iotanalytics-dataset_schedule.go b/cloudformation/iotanalytics/aws-iotanalytics-dataset_schedule.go index aad20267d7..acf05b8cb8 100644 --- a/cloudformation/iotanalytics/aws-iotanalytics-dataset_schedule.go +++ b/cloudformation/iotanalytics/aws-iotanalytics-dataset_schedule.go @@ -21,6 +21,9 @@ type Dataset_Schedule struct { // 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 diff --git a/cloudformation/iotanalytics/aws-iotanalytics-dataset_trigger.go b/cloudformation/iotanalytics/aws-iotanalytics-dataset_trigger.go index af37769c82..0f6641caf9 100644 --- a/cloudformation/iotanalytics/aws-iotanalytics-dataset_trigger.go +++ b/cloudformation/iotanalytics/aws-iotanalytics-dataset_trigger.go @@ -26,6 +26,9 @@ type Dataset_Trigger struct { // 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 diff --git a/cloudformation/iotanalytics/aws-iotanalytics-dataset_triggeringdataset.go b/cloudformation/iotanalytics/aws-iotanalytics-dataset_triggeringdataset.go index dae68ecf61..04d291871b 100644 --- a/cloudformation/iotanalytics/aws-iotanalytics-dataset_triggeringdataset.go +++ b/cloudformation/iotanalytics/aws-iotanalytics-dataset_triggeringdataset.go @@ -21,6 +21,9 @@ type Dataset_TriggeringDataset struct { // 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 diff --git a/cloudformation/iotanalytics/aws-iotanalytics-dataset_variable.go b/cloudformation/iotanalytics/aws-iotanalytics-dataset_variable.go index fbd395ff32..386378a082 100644 --- a/cloudformation/iotanalytics/aws-iotanalytics-dataset_variable.go +++ b/cloudformation/iotanalytics/aws-iotanalytics-dataset_variable.go @@ -41,6 +41,9 @@ type Dataset_Variable struct { // 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 diff --git a/cloudformation/iotanalytics/aws-iotanalytics-dataset_versioningconfiguration.go b/cloudformation/iotanalytics/aws-iotanalytics-dataset_versioningconfiguration.go index ccb36027cb..3951f0694e 100644 --- a/cloudformation/iotanalytics/aws-iotanalytics-dataset_versioningconfiguration.go +++ b/cloudformation/iotanalytics/aws-iotanalytics-dataset_versioningconfiguration.go @@ -26,6 +26,9 @@ type Dataset_VersioningConfiguration struct { // 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 diff --git a/cloudformation/iotanalytics/aws-iotanalytics-datastore.go b/cloudformation/iotanalytics/aws-iotanalytics-datastore.go index cf1fe2f9c7..181ee5c9ca 100644 --- a/cloudformation/iotanalytics/aws-iotanalytics-datastore.go +++ b/cloudformation/iotanalytics/aws-iotanalytics-datastore.go @@ -41,6 +41,9 @@ type Datastore struct { // 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 @@ -58,12 +61,14 @@ func (r Datastore) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -77,6 +82,7 @@ func (r *Datastore) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -100,5 +106,8 @@ func (r *Datastore) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/iotanalytics/aws-iotanalytics-datastore_customermanageds3.go b/cloudformation/iotanalytics/aws-iotanalytics-datastore_customermanageds3.go index 7bdde2d95b..d8701d7657 100644 --- a/cloudformation/iotanalytics/aws-iotanalytics-datastore_customermanageds3.go +++ b/cloudformation/iotanalytics/aws-iotanalytics-datastore_customermanageds3.go @@ -31,6 +31,9 @@ type Datastore_CustomerManagedS3 struct { // 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 diff --git a/cloudformation/iotanalytics/aws-iotanalytics-datastore_datastorestorage.go b/cloudformation/iotanalytics/aws-iotanalytics-datastore_datastorestorage.go index 22f7191b78..931fdc6600 100644 --- a/cloudformation/iotanalytics/aws-iotanalytics-datastore_datastorestorage.go +++ b/cloudformation/iotanalytics/aws-iotanalytics-datastore_datastorestorage.go @@ -26,6 +26,9 @@ type Datastore_DatastoreStorage struct { // 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 diff --git a/cloudformation/iotanalytics/aws-iotanalytics-datastore_retentionperiod.go b/cloudformation/iotanalytics/aws-iotanalytics-datastore_retentionperiod.go index bb13dfd61c..c5243cee7b 100644 --- a/cloudformation/iotanalytics/aws-iotanalytics-datastore_retentionperiod.go +++ b/cloudformation/iotanalytics/aws-iotanalytics-datastore_retentionperiod.go @@ -26,6 +26,9 @@ type Datastore_RetentionPeriod struct { // 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 diff --git a/cloudformation/iotanalytics/aws-iotanalytics-datastore_servicemanageds3.go b/cloudformation/iotanalytics/aws-iotanalytics-datastore_servicemanageds3.go index 86e5cbcc0f..21602adc05 100644 --- a/cloudformation/iotanalytics/aws-iotanalytics-datastore_servicemanageds3.go +++ b/cloudformation/iotanalytics/aws-iotanalytics-datastore_servicemanageds3.go @@ -16,6 +16,9 @@ type Datastore_ServiceManagedS3 struct { // 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 diff --git a/cloudformation/iotanalytics/aws-iotanalytics-pipeline.go b/cloudformation/iotanalytics/aws-iotanalytics-pipeline.go index cdc57ff810..956c153e55 100644 --- a/cloudformation/iotanalytics/aws-iotanalytics-pipeline.go +++ b/cloudformation/iotanalytics/aws-iotanalytics-pipeline.go @@ -36,6 +36,9 @@ type Pipeline struct { // 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 @@ -53,12 +56,14 @@ func (r Pipeline) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -72,6 +77,7 @@ func (r *Pipeline) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -95,5 +101,8 @@ func (r *Pipeline) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/iotanalytics/aws-iotanalytics-pipeline_activity.go b/cloudformation/iotanalytics/aws-iotanalytics-pipeline_activity.go index 108733da35..c9c62e6404 100644 --- a/cloudformation/iotanalytics/aws-iotanalytics-pipeline_activity.go +++ b/cloudformation/iotanalytics/aws-iotanalytics-pipeline_activity.go @@ -66,6 +66,9 @@ type Pipeline_Activity struct { // 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 diff --git a/cloudformation/iotanalytics/aws-iotanalytics-pipeline_addattributes.go b/cloudformation/iotanalytics/aws-iotanalytics-pipeline_addattributes.go index 9d90f22c82..a7bf736a27 100644 --- a/cloudformation/iotanalytics/aws-iotanalytics-pipeline_addattributes.go +++ b/cloudformation/iotanalytics/aws-iotanalytics-pipeline_addattributes.go @@ -31,6 +31,9 @@ type Pipeline_AddAttributes struct { // 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 diff --git a/cloudformation/iotanalytics/aws-iotanalytics-pipeline_channel.go b/cloudformation/iotanalytics/aws-iotanalytics-pipeline_channel.go index a9acaf646a..a299d8c03e 100644 --- a/cloudformation/iotanalytics/aws-iotanalytics-pipeline_channel.go +++ b/cloudformation/iotanalytics/aws-iotanalytics-pipeline_channel.go @@ -31,6 +31,9 @@ type Pipeline_Channel struct { // 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 diff --git a/cloudformation/iotanalytics/aws-iotanalytics-pipeline_datastore.go b/cloudformation/iotanalytics/aws-iotanalytics-pipeline_datastore.go index 72b64c06c8..dad1eba618 100644 --- a/cloudformation/iotanalytics/aws-iotanalytics-pipeline_datastore.go +++ b/cloudformation/iotanalytics/aws-iotanalytics-pipeline_datastore.go @@ -26,6 +26,9 @@ type Pipeline_Datastore struct { // 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 diff --git a/cloudformation/iotanalytics/aws-iotanalytics-pipeline_deviceregistryenrich.go b/cloudformation/iotanalytics/aws-iotanalytics-pipeline_deviceregistryenrich.go index a7b1abeff7..07f53fb54d 100644 --- a/cloudformation/iotanalytics/aws-iotanalytics-pipeline_deviceregistryenrich.go +++ b/cloudformation/iotanalytics/aws-iotanalytics-pipeline_deviceregistryenrich.go @@ -41,6 +41,9 @@ type Pipeline_DeviceRegistryEnrich struct { // 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 diff --git a/cloudformation/iotanalytics/aws-iotanalytics-pipeline_deviceshadowenrich.go b/cloudformation/iotanalytics/aws-iotanalytics-pipeline_deviceshadowenrich.go index b2116b5e0e..811365dad5 100644 --- a/cloudformation/iotanalytics/aws-iotanalytics-pipeline_deviceshadowenrich.go +++ b/cloudformation/iotanalytics/aws-iotanalytics-pipeline_deviceshadowenrich.go @@ -41,6 +41,9 @@ type Pipeline_DeviceShadowEnrich struct { // 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 diff --git a/cloudformation/iotanalytics/aws-iotanalytics-pipeline_filter.go b/cloudformation/iotanalytics/aws-iotanalytics-pipeline_filter.go index 432e74ee7a..ff0051c314 100644 --- a/cloudformation/iotanalytics/aws-iotanalytics-pipeline_filter.go +++ b/cloudformation/iotanalytics/aws-iotanalytics-pipeline_filter.go @@ -31,6 +31,9 @@ type Pipeline_Filter struct { // 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 diff --git a/cloudformation/iotanalytics/aws-iotanalytics-pipeline_lambda.go b/cloudformation/iotanalytics/aws-iotanalytics-pipeline_lambda.go index 5320969866..5139346013 100644 --- a/cloudformation/iotanalytics/aws-iotanalytics-pipeline_lambda.go +++ b/cloudformation/iotanalytics/aws-iotanalytics-pipeline_lambda.go @@ -36,6 +36,9 @@ type Pipeline_Lambda struct { // 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 diff --git a/cloudformation/iotanalytics/aws-iotanalytics-pipeline_math.go b/cloudformation/iotanalytics/aws-iotanalytics-pipeline_math.go index 11945ce337..23ef2423e3 100644 --- a/cloudformation/iotanalytics/aws-iotanalytics-pipeline_math.go +++ b/cloudformation/iotanalytics/aws-iotanalytics-pipeline_math.go @@ -36,6 +36,9 @@ type Pipeline_Math struct { // 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 diff --git a/cloudformation/iotanalytics/aws-iotanalytics-pipeline_removeattributes.go b/cloudformation/iotanalytics/aws-iotanalytics-pipeline_removeattributes.go index aac13d993e..47d321d775 100644 --- a/cloudformation/iotanalytics/aws-iotanalytics-pipeline_removeattributes.go +++ b/cloudformation/iotanalytics/aws-iotanalytics-pipeline_removeattributes.go @@ -31,6 +31,9 @@ type Pipeline_RemoveAttributes struct { // 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 diff --git a/cloudformation/iotanalytics/aws-iotanalytics-pipeline_selectattributes.go b/cloudformation/iotanalytics/aws-iotanalytics-pipeline_selectattributes.go index df1f95fcd4..b331b32bb7 100644 --- a/cloudformation/iotanalytics/aws-iotanalytics-pipeline_selectattributes.go +++ b/cloudformation/iotanalytics/aws-iotanalytics-pipeline_selectattributes.go @@ -31,6 +31,9 @@ type Pipeline_SelectAttributes struct { // 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 diff --git a/cloudformation/iotevents/aws-iotevents-detectormodel.go b/cloudformation/iotevents/aws-iotevents-detectormodel.go index cc8990239a..e7363e83d7 100644 --- a/cloudformation/iotevents/aws-iotevents-detectormodel.go +++ b/cloudformation/iotevents/aws-iotevents-detectormodel.go @@ -28,6 +28,11 @@ type DetectorModel struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iotevents-detectormodel.html#cfn-iotevents-detectormodel-detectormodelname DetectorModelName string `json:"DetectorModelName,omitempty"` + // EvaluationMethod AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iotevents-detectormodel.html#cfn-iotevents-detectormodel-evaluationmethod + EvaluationMethod string `json:"EvaluationMethod,omitempty"` + // Key AWS CloudFormation Property // Required: false // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iotevents-detectormodel.html#cfn-iotevents-detectormodel-key @@ -51,6 +56,9 @@ type DetectorModel struct { // 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 @@ -68,12 +76,14 @@ func (r DetectorModel) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -87,6 +97,7 @@ func (r *DetectorModel) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -110,5 +121,8 @@ func (r *DetectorModel) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/iotevents/aws-iotevents-detectormodel_action.go b/cloudformation/iotevents/aws-iotevents-detectormodel_action.go index 10c0d95c77..49c50670c3 100644 --- a/cloudformation/iotevents/aws-iotevents-detectormodel_action.go +++ b/cloudformation/iotevents/aws-iotevents-detectormodel_action.go @@ -66,6 +66,9 @@ type DetectorModel_Action struct { // 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 diff --git a/cloudformation/iotevents/aws-iotevents-detectormodel_cleartimer.go b/cloudformation/iotevents/aws-iotevents-detectormodel_cleartimer.go index 3702087e78..046e4aa526 100644 --- a/cloudformation/iotevents/aws-iotevents-detectormodel_cleartimer.go +++ b/cloudformation/iotevents/aws-iotevents-detectormodel_cleartimer.go @@ -21,6 +21,9 @@ type DetectorModel_ClearTimer struct { // 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 diff --git a/cloudformation/iotevents/aws-iotevents-detectormodel_detectormodeldefinition.go b/cloudformation/iotevents/aws-iotevents-detectormodel_detectormodeldefinition.go index f01fcdff9e..a1156b34f5 100644 --- a/cloudformation/iotevents/aws-iotevents-detectormodel_detectormodeldefinition.go +++ b/cloudformation/iotevents/aws-iotevents-detectormodel_detectormodeldefinition.go @@ -26,6 +26,9 @@ type DetectorModel_DetectorModelDefinition struct { // 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 diff --git a/cloudformation/iotevents/aws-iotevents-detectormodel_event.go b/cloudformation/iotevents/aws-iotevents-detectormodel_event.go index adebef5753..5a6ffedb84 100644 --- a/cloudformation/iotevents/aws-iotevents-detectormodel_event.go +++ b/cloudformation/iotevents/aws-iotevents-detectormodel_event.go @@ -31,6 +31,9 @@ type DetectorModel_Event struct { // 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 diff --git a/cloudformation/iotevents/aws-iotevents-detectormodel_firehose.go b/cloudformation/iotevents/aws-iotevents-detectormodel_firehose.go index d34986c398..c0b120ff11 100644 --- a/cloudformation/iotevents/aws-iotevents-detectormodel_firehose.go +++ b/cloudformation/iotevents/aws-iotevents-detectormodel_firehose.go @@ -26,6 +26,9 @@ type DetectorModel_Firehose struct { // 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 diff --git a/cloudformation/iotevents/aws-iotevents-detectormodel_iotevents.go b/cloudformation/iotevents/aws-iotevents-detectormodel_iotevents.go index 69f314de76..17bd935c95 100644 --- a/cloudformation/iotevents/aws-iotevents-detectormodel_iotevents.go +++ b/cloudformation/iotevents/aws-iotevents-detectormodel_iotevents.go @@ -21,6 +21,9 @@ type DetectorModel_IotEvents struct { // 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 diff --git a/cloudformation/iotevents/aws-iotevents-detectormodel_iottopicpublish.go b/cloudformation/iotevents/aws-iotevents-detectormodel_iottopicpublish.go index 7355e6a5be..9940e2c3c8 100644 --- a/cloudformation/iotevents/aws-iotevents-detectormodel_iottopicpublish.go +++ b/cloudformation/iotevents/aws-iotevents-detectormodel_iottopicpublish.go @@ -21,6 +21,9 @@ type DetectorModel_IotTopicPublish struct { // 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 diff --git a/cloudformation/iotevents/aws-iotevents-detectormodel_lambda.go b/cloudformation/iotevents/aws-iotevents-detectormodel_lambda.go index a01465a47a..49341bbbaf 100644 --- a/cloudformation/iotevents/aws-iotevents-detectormodel_lambda.go +++ b/cloudformation/iotevents/aws-iotevents-detectormodel_lambda.go @@ -21,6 +21,9 @@ type DetectorModel_Lambda struct { // 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 diff --git a/cloudformation/iotevents/aws-iotevents-detectormodel_onenter.go b/cloudformation/iotevents/aws-iotevents-detectormodel_onenter.go index d4a8dd007c..57b406c4e4 100644 --- a/cloudformation/iotevents/aws-iotevents-detectormodel_onenter.go +++ b/cloudformation/iotevents/aws-iotevents-detectormodel_onenter.go @@ -21,6 +21,9 @@ type DetectorModel_OnEnter struct { // 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 diff --git a/cloudformation/iotevents/aws-iotevents-detectormodel_onexit.go b/cloudformation/iotevents/aws-iotevents-detectormodel_onexit.go index 3a2b0f349f..767ee32662 100644 --- a/cloudformation/iotevents/aws-iotevents-detectormodel_onexit.go +++ b/cloudformation/iotevents/aws-iotevents-detectormodel_onexit.go @@ -21,6 +21,9 @@ type DetectorModel_OnExit struct { // 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 diff --git a/cloudformation/iotevents/aws-iotevents-detectormodel_oninput.go b/cloudformation/iotevents/aws-iotevents-detectormodel_oninput.go index e5bde1e18e..1b8a09afc2 100644 --- a/cloudformation/iotevents/aws-iotevents-detectormodel_oninput.go +++ b/cloudformation/iotevents/aws-iotevents-detectormodel_oninput.go @@ -26,6 +26,9 @@ type DetectorModel_OnInput struct { // 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 diff --git a/cloudformation/iotevents/aws-iotevents-detectormodel_resettimer.go b/cloudformation/iotevents/aws-iotevents-detectormodel_resettimer.go index b077787dd6..a4b6b845cf 100644 --- a/cloudformation/iotevents/aws-iotevents-detectormodel_resettimer.go +++ b/cloudformation/iotevents/aws-iotevents-detectormodel_resettimer.go @@ -21,6 +21,9 @@ type DetectorModel_ResetTimer struct { // 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 diff --git a/cloudformation/iotevents/aws-iotevents-detectormodel_settimer.go b/cloudformation/iotevents/aws-iotevents-detectormodel_settimer.go index 2b3088f54d..3bdc1ac183 100644 --- a/cloudformation/iotevents/aws-iotevents-detectormodel_settimer.go +++ b/cloudformation/iotevents/aws-iotevents-detectormodel_settimer.go @@ -26,6 +26,9 @@ type DetectorModel_SetTimer struct { // 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 diff --git a/cloudformation/iotevents/aws-iotevents-detectormodel_setvariable.go b/cloudformation/iotevents/aws-iotevents-detectormodel_setvariable.go index 68a18321fb..187d49fd7f 100644 --- a/cloudformation/iotevents/aws-iotevents-detectormodel_setvariable.go +++ b/cloudformation/iotevents/aws-iotevents-detectormodel_setvariable.go @@ -26,6 +26,9 @@ type DetectorModel_SetVariable struct { // 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 diff --git a/cloudformation/iotevents/aws-iotevents-detectormodel_sns.go b/cloudformation/iotevents/aws-iotevents-detectormodel_sns.go index d0c51c82fe..0144944692 100644 --- a/cloudformation/iotevents/aws-iotevents-detectormodel_sns.go +++ b/cloudformation/iotevents/aws-iotevents-detectormodel_sns.go @@ -21,6 +21,9 @@ type DetectorModel_Sns struct { // 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 diff --git a/cloudformation/iotevents/aws-iotevents-detectormodel_sqs.go b/cloudformation/iotevents/aws-iotevents-detectormodel_sqs.go index a385889607..226697c35a 100644 --- a/cloudformation/iotevents/aws-iotevents-detectormodel_sqs.go +++ b/cloudformation/iotevents/aws-iotevents-detectormodel_sqs.go @@ -26,6 +26,9 @@ type DetectorModel_Sqs struct { // 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 diff --git a/cloudformation/iotevents/aws-iotevents-detectormodel_state.go b/cloudformation/iotevents/aws-iotevents-detectormodel_state.go index 4908fcb31d..6321e0e3a5 100644 --- a/cloudformation/iotevents/aws-iotevents-detectormodel_state.go +++ b/cloudformation/iotevents/aws-iotevents-detectormodel_state.go @@ -36,6 +36,9 @@ type DetectorModel_State struct { // 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 diff --git a/cloudformation/iotevents/aws-iotevents-detectormodel_transitionevent.go b/cloudformation/iotevents/aws-iotevents-detectormodel_transitionevent.go index 1ba0b9576b..8cf325aad9 100644 --- a/cloudformation/iotevents/aws-iotevents-detectormodel_transitionevent.go +++ b/cloudformation/iotevents/aws-iotevents-detectormodel_transitionevent.go @@ -36,6 +36,9 @@ type DetectorModel_TransitionEvent struct { // 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 diff --git a/cloudformation/iotevents/aws-iotevents-input.go b/cloudformation/iotevents/aws-iotevents-input.go index b9ffa25dda..cdbc0e0749 100644 --- a/cloudformation/iotevents/aws-iotevents-input.go +++ b/cloudformation/iotevents/aws-iotevents-input.go @@ -41,6 +41,9 @@ type Input struct { // 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 @@ -58,12 +61,14 @@ func (r Input) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -77,6 +82,7 @@ func (r *Input) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -100,5 +106,8 @@ func (r *Input) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/iotevents/aws-iotevents-input_attribute.go b/cloudformation/iotevents/aws-iotevents-input_attribute.go index 651756f1b4..95975e58c6 100644 --- a/cloudformation/iotevents/aws-iotevents-input_attribute.go +++ b/cloudformation/iotevents/aws-iotevents-input_attribute.go @@ -21,6 +21,9 @@ type Input_Attribute struct { // 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 diff --git a/cloudformation/iotevents/aws-iotevents-input_inputdefinition.go b/cloudformation/iotevents/aws-iotevents-input_inputdefinition.go index 8b16f81617..86a61c7011 100644 --- a/cloudformation/iotevents/aws-iotevents-input_inputdefinition.go +++ b/cloudformation/iotevents/aws-iotevents-input_inputdefinition.go @@ -21,6 +21,9 @@ type Input_InputDefinition struct { // 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 diff --git a/cloudformation/iotthingsgraph/aws-iotthingsgraph-flowtemplate.go b/cloudformation/iotthingsgraph/aws-iotthingsgraph-flowtemplate.go index 6bd94e6b68..128fcbb920 100644 --- a/cloudformation/iotthingsgraph/aws-iotthingsgraph-flowtemplate.go +++ b/cloudformation/iotthingsgraph/aws-iotthingsgraph-flowtemplate.go @@ -30,6 +30,9 @@ type FlowTemplate struct { // 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 @@ -47,12 +50,14 @@ func (r FlowTemplate) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -66,6 +71,7 @@ func (r *FlowTemplate) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -89,5 +95,8 @@ func (r *FlowTemplate) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/iotthingsgraph/aws-iotthingsgraph-flowtemplate_definitiondocument.go b/cloudformation/iotthingsgraph/aws-iotthingsgraph-flowtemplate_definitiondocument.go index 6a7e16d69e..a6e4cbc1de 100644 --- a/cloudformation/iotthingsgraph/aws-iotthingsgraph-flowtemplate_definitiondocument.go +++ b/cloudformation/iotthingsgraph/aws-iotthingsgraph-flowtemplate_definitiondocument.go @@ -26,6 +26,9 @@ type FlowTemplate_DefinitionDocument struct { // 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 diff --git a/cloudformation/kinesis/aws-kinesis-stream.go b/cloudformation/kinesis/aws-kinesis-stream.go index 4c9c9c139d..cca54e37c1 100644 --- a/cloudformation/kinesis/aws-kinesis-stream.go +++ b/cloudformation/kinesis/aws-kinesis-stream.go @@ -46,6 +46,9 @@ type Stream struct { // 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 @@ -63,12 +66,14 @@ func (r Stream) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -82,6 +87,7 @@ func (r *Stream) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -105,5 +111,8 @@ func (r *Stream) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/kinesis/aws-kinesis-stream_streamencryption.go b/cloudformation/kinesis/aws-kinesis-stream_streamencryption.go index db7a15a886..956b73f738 100644 --- a/cloudformation/kinesis/aws-kinesis-stream_streamencryption.go +++ b/cloudformation/kinesis/aws-kinesis-stream_streamencryption.go @@ -26,6 +26,9 @@ type Stream_StreamEncryption struct { // 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 diff --git a/cloudformation/kinesis/aws-kinesis-streamconsumer.go b/cloudformation/kinesis/aws-kinesis-streamconsumer.go index c345d09c0e..dc0532f173 100644 --- a/cloudformation/kinesis/aws-kinesis-streamconsumer.go +++ b/cloudformation/kinesis/aws-kinesis-streamconsumer.go @@ -30,6 +30,9 @@ type StreamConsumer struct { // 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 @@ -47,12 +50,14 @@ func (r StreamConsumer) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -66,6 +71,7 @@ func (r *StreamConsumer) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -89,5 +95,8 @@ func (r *StreamConsumer) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/kinesisanalytics/aws-kinesisanalytics-application.go b/cloudformation/kinesisanalytics/aws-kinesisanalytics-application.go index aec802f426..cfe94c8b0e 100644 --- a/cloudformation/kinesisanalytics/aws-kinesisanalytics-application.go +++ b/cloudformation/kinesisanalytics/aws-kinesisanalytics-application.go @@ -40,6 +40,9 @@ type Application struct { // 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 @@ -57,12 +60,14 @@ func (r Application) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -76,6 +81,7 @@ func (r *Application) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -99,5 +105,8 @@ func (r *Application) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/kinesisanalytics/aws-kinesisanalytics-application_csvmappingparameters.go b/cloudformation/kinesisanalytics/aws-kinesisanalytics-application_csvmappingparameters.go index 119d83dc60..1503528f2c 100644 --- a/cloudformation/kinesisanalytics/aws-kinesisanalytics-application_csvmappingparameters.go +++ b/cloudformation/kinesisanalytics/aws-kinesisanalytics-application_csvmappingparameters.go @@ -26,6 +26,9 @@ type Application_CSVMappingParameters struct { // 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 diff --git a/cloudformation/kinesisanalytics/aws-kinesisanalytics-application_input.go b/cloudformation/kinesisanalytics/aws-kinesisanalytics-application_input.go index b94bf3871a..0f557267ce 100644 --- a/cloudformation/kinesisanalytics/aws-kinesisanalytics-application_input.go +++ b/cloudformation/kinesisanalytics/aws-kinesisanalytics-application_input.go @@ -46,6 +46,9 @@ type Application_Input struct { // 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 diff --git a/cloudformation/kinesisanalytics/aws-kinesisanalytics-application_inputlambdaprocessor.go b/cloudformation/kinesisanalytics/aws-kinesisanalytics-application_inputlambdaprocessor.go index 0e77a92f87..d56ac8d6ca 100644 --- a/cloudformation/kinesisanalytics/aws-kinesisanalytics-application_inputlambdaprocessor.go +++ b/cloudformation/kinesisanalytics/aws-kinesisanalytics-application_inputlambdaprocessor.go @@ -26,6 +26,9 @@ type Application_InputLambdaProcessor struct { // 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 diff --git a/cloudformation/kinesisanalytics/aws-kinesisanalytics-application_inputparallelism.go b/cloudformation/kinesisanalytics/aws-kinesisanalytics-application_inputparallelism.go index ecb76cad58..ccc7bbc69e 100644 --- a/cloudformation/kinesisanalytics/aws-kinesisanalytics-application_inputparallelism.go +++ b/cloudformation/kinesisanalytics/aws-kinesisanalytics-application_inputparallelism.go @@ -21,6 +21,9 @@ type Application_InputParallelism struct { // 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 diff --git a/cloudformation/kinesisanalytics/aws-kinesisanalytics-application_inputprocessingconfiguration.go b/cloudformation/kinesisanalytics/aws-kinesisanalytics-application_inputprocessingconfiguration.go index 4ff360ca78..bc0dffd8c5 100644 --- a/cloudformation/kinesisanalytics/aws-kinesisanalytics-application_inputprocessingconfiguration.go +++ b/cloudformation/kinesisanalytics/aws-kinesisanalytics-application_inputprocessingconfiguration.go @@ -21,6 +21,9 @@ type Application_InputProcessingConfiguration struct { // 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 diff --git a/cloudformation/kinesisanalytics/aws-kinesisanalytics-application_inputschema.go b/cloudformation/kinesisanalytics/aws-kinesisanalytics-application_inputschema.go index c4abf9ef6f..1a3e48eafb 100644 --- a/cloudformation/kinesisanalytics/aws-kinesisanalytics-application_inputschema.go +++ b/cloudformation/kinesisanalytics/aws-kinesisanalytics-application_inputschema.go @@ -31,6 +31,9 @@ type Application_InputSchema struct { // 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 diff --git a/cloudformation/kinesisanalytics/aws-kinesisanalytics-application_jsonmappingparameters.go b/cloudformation/kinesisanalytics/aws-kinesisanalytics-application_jsonmappingparameters.go index 87f088564d..ebb522107b 100644 --- a/cloudformation/kinesisanalytics/aws-kinesisanalytics-application_jsonmappingparameters.go +++ b/cloudformation/kinesisanalytics/aws-kinesisanalytics-application_jsonmappingparameters.go @@ -21,6 +21,9 @@ type Application_JSONMappingParameters struct { // 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 diff --git a/cloudformation/kinesisanalytics/aws-kinesisanalytics-application_kinesisfirehoseinput.go b/cloudformation/kinesisanalytics/aws-kinesisanalytics-application_kinesisfirehoseinput.go index 3d02e6c84e..0f0841dc75 100644 --- a/cloudformation/kinesisanalytics/aws-kinesisanalytics-application_kinesisfirehoseinput.go +++ b/cloudformation/kinesisanalytics/aws-kinesisanalytics-application_kinesisfirehoseinput.go @@ -26,6 +26,9 @@ type Application_KinesisFirehoseInput struct { // 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 diff --git a/cloudformation/kinesisanalytics/aws-kinesisanalytics-application_kinesisstreamsinput.go b/cloudformation/kinesisanalytics/aws-kinesisanalytics-application_kinesisstreamsinput.go index 005d3e4e36..a57d3bef05 100644 --- a/cloudformation/kinesisanalytics/aws-kinesisanalytics-application_kinesisstreamsinput.go +++ b/cloudformation/kinesisanalytics/aws-kinesisanalytics-application_kinesisstreamsinput.go @@ -26,6 +26,9 @@ type Application_KinesisStreamsInput struct { // 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 diff --git a/cloudformation/kinesisanalytics/aws-kinesisanalytics-application_mappingparameters.go b/cloudformation/kinesisanalytics/aws-kinesisanalytics-application_mappingparameters.go index dfbb14fefe..63c23f7f44 100644 --- a/cloudformation/kinesisanalytics/aws-kinesisanalytics-application_mappingparameters.go +++ b/cloudformation/kinesisanalytics/aws-kinesisanalytics-application_mappingparameters.go @@ -26,6 +26,9 @@ type Application_MappingParameters struct { // 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 diff --git a/cloudformation/kinesisanalytics/aws-kinesisanalytics-application_recordcolumn.go b/cloudformation/kinesisanalytics/aws-kinesisanalytics-application_recordcolumn.go index 25e8db9735..3429a0cc84 100644 --- a/cloudformation/kinesisanalytics/aws-kinesisanalytics-application_recordcolumn.go +++ b/cloudformation/kinesisanalytics/aws-kinesisanalytics-application_recordcolumn.go @@ -31,6 +31,9 @@ type Application_RecordColumn struct { // 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 diff --git a/cloudformation/kinesisanalytics/aws-kinesisanalytics-application_recordformat.go b/cloudformation/kinesisanalytics/aws-kinesisanalytics-application_recordformat.go index 308c8881cb..85b31a84eb 100644 --- a/cloudformation/kinesisanalytics/aws-kinesisanalytics-application_recordformat.go +++ b/cloudformation/kinesisanalytics/aws-kinesisanalytics-application_recordformat.go @@ -26,6 +26,9 @@ type Application_RecordFormat struct { // 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 diff --git a/cloudformation/kinesisanalytics/aws-kinesisanalytics-applicationoutput.go b/cloudformation/kinesisanalytics/aws-kinesisanalytics-applicationoutput.go index 38664f6d6f..fc99d52d6b 100644 --- a/cloudformation/kinesisanalytics/aws-kinesisanalytics-applicationoutput.go +++ b/cloudformation/kinesisanalytics/aws-kinesisanalytics-applicationoutput.go @@ -30,6 +30,9 @@ type ApplicationOutput struct { // 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 @@ -47,12 +50,14 @@ func (r ApplicationOutput) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -66,6 +71,7 @@ func (r *ApplicationOutput) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -89,5 +95,8 @@ func (r *ApplicationOutput) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/kinesisanalytics/aws-kinesisanalytics-applicationoutput_destinationschema.go b/cloudformation/kinesisanalytics/aws-kinesisanalytics-applicationoutput_destinationschema.go index c5a5579938..081a248e99 100644 --- a/cloudformation/kinesisanalytics/aws-kinesisanalytics-applicationoutput_destinationschema.go +++ b/cloudformation/kinesisanalytics/aws-kinesisanalytics-applicationoutput_destinationschema.go @@ -21,6 +21,9 @@ type ApplicationOutput_DestinationSchema struct { // 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 diff --git a/cloudformation/kinesisanalytics/aws-kinesisanalytics-applicationoutput_kinesisfirehoseoutput.go b/cloudformation/kinesisanalytics/aws-kinesisanalytics-applicationoutput_kinesisfirehoseoutput.go index b71e0fdec6..f52ac6c2e9 100644 --- a/cloudformation/kinesisanalytics/aws-kinesisanalytics-applicationoutput_kinesisfirehoseoutput.go +++ b/cloudformation/kinesisanalytics/aws-kinesisanalytics-applicationoutput_kinesisfirehoseoutput.go @@ -26,6 +26,9 @@ type ApplicationOutput_KinesisFirehoseOutput struct { // 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 diff --git a/cloudformation/kinesisanalytics/aws-kinesisanalytics-applicationoutput_kinesisstreamsoutput.go b/cloudformation/kinesisanalytics/aws-kinesisanalytics-applicationoutput_kinesisstreamsoutput.go index 8e9702d2b8..6206b4e91d 100644 --- a/cloudformation/kinesisanalytics/aws-kinesisanalytics-applicationoutput_kinesisstreamsoutput.go +++ b/cloudformation/kinesisanalytics/aws-kinesisanalytics-applicationoutput_kinesisstreamsoutput.go @@ -26,6 +26,9 @@ type ApplicationOutput_KinesisStreamsOutput struct { // 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 diff --git a/cloudformation/kinesisanalytics/aws-kinesisanalytics-applicationoutput_lambdaoutput.go b/cloudformation/kinesisanalytics/aws-kinesisanalytics-applicationoutput_lambdaoutput.go index 08e58de7e7..d72f048161 100644 --- a/cloudformation/kinesisanalytics/aws-kinesisanalytics-applicationoutput_lambdaoutput.go +++ b/cloudformation/kinesisanalytics/aws-kinesisanalytics-applicationoutput_lambdaoutput.go @@ -26,6 +26,9 @@ type ApplicationOutput_LambdaOutput struct { // 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 diff --git a/cloudformation/kinesisanalytics/aws-kinesisanalytics-applicationoutput_output.go b/cloudformation/kinesisanalytics/aws-kinesisanalytics-applicationoutput_output.go index e204c90a50..5449ab4ee9 100644 --- a/cloudformation/kinesisanalytics/aws-kinesisanalytics-applicationoutput_output.go +++ b/cloudformation/kinesisanalytics/aws-kinesisanalytics-applicationoutput_output.go @@ -41,6 +41,9 @@ type ApplicationOutput_Output struct { // 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 diff --git a/cloudformation/kinesisanalytics/aws-kinesisanalytics-applicationreferencedatasource.go b/cloudformation/kinesisanalytics/aws-kinesisanalytics-applicationreferencedatasource.go index 7265fd0773..12a23f2849 100644 --- a/cloudformation/kinesisanalytics/aws-kinesisanalytics-applicationreferencedatasource.go +++ b/cloudformation/kinesisanalytics/aws-kinesisanalytics-applicationreferencedatasource.go @@ -30,6 +30,9 @@ type ApplicationReferenceDataSource struct { // 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 @@ -47,12 +50,14 @@ func (r ApplicationReferenceDataSource) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -66,6 +71,7 @@ func (r *ApplicationReferenceDataSource) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -89,5 +95,8 @@ func (r *ApplicationReferenceDataSource) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/kinesisanalytics/aws-kinesisanalytics-applicationreferencedatasource_csvmappingparameters.go b/cloudformation/kinesisanalytics/aws-kinesisanalytics-applicationreferencedatasource_csvmappingparameters.go index 3fa8636197..8ae56f1e6b 100644 --- a/cloudformation/kinesisanalytics/aws-kinesisanalytics-applicationreferencedatasource_csvmappingparameters.go +++ b/cloudformation/kinesisanalytics/aws-kinesisanalytics-applicationreferencedatasource_csvmappingparameters.go @@ -26,6 +26,9 @@ type ApplicationReferenceDataSource_CSVMappingParameters struct { // 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 diff --git a/cloudformation/kinesisanalytics/aws-kinesisanalytics-applicationreferencedatasource_jsonmappingparameters.go b/cloudformation/kinesisanalytics/aws-kinesisanalytics-applicationreferencedatasource_jsonmappingparameters.go index beb0e36c90..c4fc935b0e 100644 --- a/cloudformation/kinesisanalytics/aws-kinesisanalytics-applicationreferencedatasource_jsonmappingparameters.go +++ b/cloudformation/kinesisanalytics/aws-kinesisanalytics-applicationreferencedatasource_jsonmappingparameters.go @@ -21,6 +21,9 @@ type ApplicationReferenceDataSource_JSONMappingParameters struct { // 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 diff --git a/cloudformation/kinesisanalytics/aws-kinesisanalytics-applicationreferencedatasource_mappingparameters.go b/cloudformation/kinesisanalytics/aws-kinesisanalytics-applicationreferencedatasource_mappingparameters.go index 05d85990d5..498eba3449 100644 --- a/cloudformation/kinesisanalytics/aws-kinesisanalytics-applicationreferencedatasource_mappingparameters.go +++ b/cloudformation/kinesisanalytics/aws-kinesisanalytics-applicationreferencedatasource_mappingparameters.go @@ -26,6 +26,9 @@ type ApplicationReferenceDataSource_MappingParameters struct { // 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 diff --git a/cloudformation/kinesisanalytics/aws-kinesisanalytics-applicationreferencedatasource_recordcolumn.go b/cloudformation/kinesisanalytics/aws-kinesisanalytics-applicationreferencedatasource_recordcolumn.go index e440a2e99e..8da27a45c2 100644 --- a/cloudformation/kinesisanalytics/aws-kinesisanalytics-applicationreferencedatasource_recordcolumn.go +++ b/cloudformation/kinesisanalytics/aws-kinesisanalytics-applicationreferencedatasource_recordcolumn.go @@ -31,6 +31,9 @@ type ApplicationReferenceDataSource_RecordColumn struct { // 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 diff --git a/cloudformation/kinesisanalytics/aws-kinesisanalytics-applicationreferencedatasource_recordformat.go b/cloudformation/kinesisanalytics/aws-kinesisanalytics-applicationreferencedatasource_recordformat.go index cb4f27839f..e664cc3827 100644 --- a/cloudformation/kinesisanalytics/aws-kinesisanalytics-applicationreferencedatasource_recordformat.go +++ b/cloudformation/kinesisanalytics/aws-kinesisanalytics-applicationreferencedatasource_recordformat.go @@ -26,6 +26,9 @@ type ApplicationReferenceDataSource_RecordFormat struct { // 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 diff --git a/cloudformation/kinesisanalytics/aws-kinesisanalytics-applicationreferencedatasource_referencedatasource.go b/cloudformation/kinesisanalytics/aws-kinesisanalytics-applicationreferencedatasource_referencedatasource.go index fa688bd385..2cce7ab4c4 100644 --- a/cloudformation/kinesisanalytics/aws-kinesisanalytics-applicationreferencedatasource_referencedatasource.go +++ b/cloudformation/kinesisanalytics/aws-kinesisanalytics-applicationreferencedatasource_referencedatasource.go @@ -31,6 +31,9 @@ type ApplicationReferenceDataSource_ReferenceDataSource struct { // 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 diff --git a/cloudformation/kinesisanalytics/aws-kinesisanalytics-applicationreferencedatasource_referenceschema.go b/cloudformation/kinesisanalytics/aws-kinesisanalytics-applicationreferencedatasource_referenceschema.go index b2629ab6f6..f4eb3f0fdb 100644 --- a/cloudformation/kinesisanalytics/aws-kinesisanalytics-applicationreferencedatasource_referenceschema.go +++ b/cloudformation/kinesisanalytics/aws-kinesisanalytics-applicationreferencedatasource_referenceschema.go @@ -31,6 +31,9 @@ type ApplicationReferenceDataSource_ReferenceSchema struct { // 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 diff --git a/cloudformation/kinesisanalytics/aws-kinesisanalytics-applicationreferencedatasource_s3referencedatasource.go b/cloudformation/kinesisanalytics/aws-kinesisanalytics-applicationreferencedatasource_s3referencedatasource.go index 2ddb0fa991..a3e4ab8a9f 100644 --- a/cloudformation/kinesisanalytics/aws-kinesisanalytics-applicationreferencedatasource_s3referencedatasource.go +++ b/cloudformation/kinesisanalytics/aws-kinesisanalytics-applicationreferencedatasource_s3referencedatasource.go @@ -31,6 +31,9 @@ type ApplicationReferenceDataSource_S3ReferenceDataSource struct { // 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 diff --git a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application.go b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application.go index 1825bef262..e4230a3439 100644 --- a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application.go +++ b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application.go @@ -45,6 +45,9 @@ type Application struct { // 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 @@ -62,12 +65,14 @@ func (r Application) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -81,6 +86,7 @@ func (r *Application) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -104,5 +110,8 @@ func (r *Application) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_applicationcodeconfiguration.go b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_applicationcodeconfiguration.go index 8394c0112f..ba1fb66727 100644 --- a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_applicationcodeconfiguration.go +++ b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_applicationcodeconfiguration.go @@ -26,6 +26,9 @@ type Application_ApplicationCodeConfiguration struct { // 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 diff --git a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_applicationconfiguration.go b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_applicationconfiguration.go index afb5ca6edc..08b022858c 100644 --- a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_applicationconfiguration.go +++ b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_applicationconfiguration.go @@ -41,6 +41,9 @@ type Application_ApplicationConfiguration struct { // 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 diff --git a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_applicationsnapshotconfiguration.go b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_applicationsnapshotconfiguration.go index 8f559a2187..ed21a3f6c5 100644 --- a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_applicationsnapshotconfiguration.go +++ b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_applicationsnapshotconfiguration.go @@ -21,6 +21,9 @@ type Application_ApplicationSnapshotConfiguration struct { // 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 diff --git a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_checkpointconfiguration.go b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_checkpointconfiguration.go index 2072bfc4d6..8633a011de 100644 --- a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_checkpointconfiguration.go +++ b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_checkpointconfiguration.go @@ -36,6 +36,9 @@ type Application_CheckpointConfiguration struct { // 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 diff --git a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_codecontent.go b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_codecontent.go index 43c6331946..87f48f15e7 100644 --- a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_codecontent.go +++ b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_codecontent.go @@ -31,6 +31,9 @@ type Application_CodeContent struct { // 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 diff --git a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_csvmappingparameters.go b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_csvmappingparameters.go index 7d2d1dd0c6..79dec52d9e 100644 --- a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_csvmappingparameters.go +++ b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_csvmappingparameters.go @@ -26,6 +26,9 @@ type Application_CSVMappingParameters struct { // 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 diff --git a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_environmentproperties.go b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_environmentproperties.go index 5cbed038dc..6573b10ee7 100644 --- a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_environmentproperties.go +++ b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_environmentproperties.go @@ -21,6 +21,9 @@ type Application_EnvironmentProperties struct { // 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 diff --git a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_flinkapplicationconfiguration.go b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_flinkapplicationconfiguration.go index 110d7599d8..05939096bf 100644 --- a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_flinkapplicationconfiguration.go +++ b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_flinkapplicationconfiguration.go @@ -31,6 +31,9 @@ type Application_FlinkApplicationConfiguration struct { // 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 diff --git a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_input.go b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_input.go index 8916a5bc26..d8686dfb93 100644 --- a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_input.go +++ b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_input.go @@ -46,6 +46,9 @@ type Application_Input struct { // 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 diff --git a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_inputlambdaprocessor.go b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_inputlambdaprocessor.go index 81f94b6270..38b18fffd3 100644 --- a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_inputlambdaprocessor.go +++ b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_inputlambdaprocessor.go @@ -21,6 +21,9 @@ type Application_InputLambdaProcessor struct { // 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 diff --git a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_inputparallelism.go b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_inputparallelism.go index 7b7feb7384..b4f2c3bac9 100644 --- a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_inputparallelism.go +++ b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_inputparallelism.go @@ -21,6 +21,9 @@ type Application_InputParallelism struct { // 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 diff --git a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_inputprocessingconfiguration.go b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_inputprocessingconfiguration.go index 8b61533416..49dfc58da2 100644 --- a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_inputprocessingconfiguration.go +++ b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_inputprocessingconfiguration.go @@ -21,6 +21,9 @@ type Application_InputProcessingConfiguration struct { // 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 diff --git a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_inputschema.go b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_inputschema.go index 21f1c47ad2..dfd305b96c 100644 --- a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_inputschema.go +++ b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_inputschema.go @@ -31,6 +31,9 @@ type Application_InputSchema struct { // 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 diff --git a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_jsonmappingparameters.go b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_jsonmappingparameters.go index 09c2d9dfc2..088ccda76a 100644 --- a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_jsonmappingparameters.go +++ b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_jsonmappingparameters.go @@ -21,6 +21,9 @@ type Application_JSONMappingParameters struct { // 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 diff --git a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_kinesisfirehoseinput.go b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_kinesisfirehoseinput.go index 86dc4e7cca..067bb040eb 100644 --- a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_kinesisfirehoseinput.go +++ b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_kinesisfirehoseinput.go @@ -21,6 +21,9 @@ type Application_KinesisFirehoseInput struct { // 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 diff --git a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_kinesisstreamsinput.go b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_kinesisstreamsinput.go index c49a09b65b..e724cd2358 100644 --- a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_kinesisstreamsinput.go +++ b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_kinesisstreamsinput.go @@ -21,6 +21,9 @@ type Application_KinesisStreamsInput struct { // 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 diff --git a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_mappingparameters.go b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_mappingparameters.go index 5b146f5496..df76f5f4d2 100644 --- a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_mappingparameters.go +++ b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_mappingparameters.go @@ -26,6 +26,9 @@ type Application_MappingParameters struct { // 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 diff --git a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_monitoringconfiguration.go b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_monitoringconfiguration.go index 7fe0eb04ff..f8f93ce41e 100644 --- a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_monitoringconfiguration.go +++ b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_monitoringconfiguration.go @@ -31,6 +31,9 @@ type Application_MonitoringConfiguration struct { // 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 diff --git a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_parallelismconfiguration.go b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_parallelismconfiguration.go index d66fbfb0a9..d2973cc892 100644 --- a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_parallelismconfiguration.go +++ b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_parallelismconfiguration.go @@ -36,6 +36,9 @@ type Application_ParallelismConfiguration struct { // 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 diff --git a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_propertygroup.go b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_propertygroup.go index 4c31eeb895..4bea38bf94 100644 --- a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_propertygroup.go +++ b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_propertygroup.go @@ -26,6 +26,9 @@ type Application_PropertyGroup struct { // 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 diff --git a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_recordcolumn.go b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_recordcolumn.go index 0338e10bed..5aee27475e 100644 --- a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_recordcolumn.go +++ b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_recordcolumn.go @@ -31,6 +31,9 @@ type Application_RecordColumn struct { // 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 diff --git a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_recordformat.go b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_recordformat.go index ce742694ca..2cace5a0b6 100644 --- a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_recordformat.go +++ b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_recordformat.go @@ -26,6 +26,9 @@ type Application_RecordFormat struct { // 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 diff --git a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_s3contentlocation.go b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_s3contentlocation.go index ba2d112617..557407b253 100644 --- a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_s3contentlocation.go +++ b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_s3contentlocation.go @@ -31,6 +31,9 @@ type Application_S3ContentLocation struct { // 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 diff --git a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_sqlapplicationconfiguration.go b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_sqlapplicationconfiguration.go index 5784a998b3..199572a634 100644 --- a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_sqlapplicationconfiguration.go +++ b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-application_sqlapplicationconfiguration.go @@ -21,6 +21,9 @@ type Application_SqlApplicationConfiguration struct { // 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 diff --git a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-applicationcloudwatchloggingoption.go b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-applicationcloudwatchloggingoption.go index b83bdb4574..72dda6662d 100644 --- a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-applicationcloudwatchloggingoption.go +++ b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-applicationcloudwatchloggingoption.go @@ -30,6 +30,9 @@ type ApplicationCloudWatchLoggingOption struct { // 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 @@ -47,12 +50,14 @@ func (r ApplicationCloudWatchLoggingOption) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -66,6 +71,7 @@ func (r *ApplicationCloudWatchLoggingOption) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -89,5 +95,8 @@ func (r *ApplicationCloudWatchLoggingOption) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-applicationcloudwatchloggingoption_cloudwatchloggingoption.go b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-applicationcloudwatchloggingoption_cloudwatchloggingoption.go index 945efb8d15..fa507f020b 100644 --- a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-applicationcloudwatchloggingoption_cloudwatchloggingoption.go +++ b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-applicationcloudwatchloggingoption_cloudwatchloggingoption.go @@ -21,6 +21,9 @@ type ApplicationCloudWatchLoggingOption_CloudWatchLoggingOption struct { // 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 diff --git a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-applicationoutput.go b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-applicationoutput.go index 884e5116df..87ba3ce6f7 100644 --- a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-applicationoutput.go +++ b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-applicationoutput.go @@ -30,6 +30,9 @@ type ApplicationOutput struct { // 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 @@ -47,12 +50,14 @@ func (r ApplicationOutput) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -66,6 +71,7 @@ func (r *ApplicationOutput) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -89,5 +95,8 @@ func (r *ApplicationOutput) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-applicationoutput_destinationschema.go b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-applicationoutput_destinationschema.go index 02416e7e37..6030d7912c 100644 --- a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-applicationoutput_destinationschema.go +++ b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-applicationoutput_destinationschema.go @@ -21,6 +21,9 @@ type ApplicationOutput_DestinationSchema struct { // 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 diff --git a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-applicationoutput_kinesisfirehoseoutput.go b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-applicationoutput_kinesisfirehoseoutput.go index 24ff6c51ff..f57cb4c172 100644 --- a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-applicationoutput_kinesisfirehoseoutput.go +++ b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-applicationoutput_kinesisfirehoseoutput.go @@ -21,6 +21,9 @@ type ApplicationOutput_KinesisFirehoseOutput struct { // 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 diff --git a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-applicationoutput_kinesisstreamsoutput.go b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-applicationoutput_kinesisstreamsoutput.go index aa1cd0ee06..a7b98ce52b 100644 --- a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-applicationoutput_kinesisstreamsoutput.go +++ b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-applicationoutput_kinesisstreamsoutput.go @@ -21,6 +21,9 @@ type ApplicationOutput_KinesisStreamsOutput struct { // 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 diff --git a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-applicationoutput_lambdaoutput.go b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-applicationoutput_lambdaoutput.go index bcd7ca6d09..46fa38d7ed 100644 --- a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-applicationoutput_lambdaoutput.go +++ b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-applicationoutput_lambdaoutput.go @@ -21,6 +21,9 @@ type ApplicationOutput_LambdaOutput struct { // 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 diff --git a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-applicationoutput_output.go b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-applicationoutput_output.go index e03369d723..3c6319e139 100644 --- a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-applicationoutput_output.go +++ b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-applicationoutput_output.go @@ -41,6 +41,9 @@ type ApplicationOutput_Output struct { // 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 diff --git a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-applicationreferencedatasource.go b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-applicationreferencedatasource.go index fab128bbd6..888e00d737 100644 --- a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-applicationreferencedatasource.go +++ b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-applicationreferencedatasource.go @@ -30,6 +30,9 @@ type ApplicationReferenceDataSource struct { // 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 @@ -47,12 +50,14 @@ func (r ApplicationReferenceDataSource) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -66,6 +71,7 @@ func (r *ApplicationReferenceDataSource) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -89,5 +95,8 @@ func (r *ApplicationReferenceDataSource) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-applicationreferencedatasource_csvmappingparameters.go b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-applicationreferencedatasource_csvmappingparameters.go index 86955c5d39..2d3c669df6 100644 --- a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-applicationreferencedatasource_csvmappingparameters.go +++ b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-applicationreferencedatasource_csvmappingparameters.go @@ -26,6 +26,9 @@ type ApplicationReferenceDataSource_CSVMappingParameters struct { // 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 diff --git a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-applicationreferencedatasource_jsonmappingparameters.go b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-applicationreferencedatasource_jsonmappingparameters.go index df95cc3222..103ecfd218 100644 --- a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-applicationreferencedatasource_jsonmappingparameters.go +++ b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-applicationreferencedatasource_jsonmappingparameters.go @@ -21,6 +21,9 @@ type ApplicationReferenceDataSource_JSONMappingParameters struct { // 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 diff --git a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-applicationreferencedatasource_mappingparameters.go b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-applicationreferencedatasource_mappingparameters.go index a583329189..612bb08435 100644 --- a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-applicationreferencedatasource_mappingparameters.go +++ b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-applicationreferencedatasource_mappingparameters.go @@ -26,6 +26,9 @@ type ApplicationReferenceDataSource_MappingParameters struct { // 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 diff --git a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-applicationreferencedatasource_recordcolumn.go b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-applicationreferencedatasource_recordcolumn.go index f7cb0fccbe..fd99a32c4f 100644 --- a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-applicationreferencedatasource_recordcolumn.go +++ b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-applicationreferencedatasource_recordcolumn.go @@ -31,6 +31,9 @@ type ApplicationReferenceDataSource_RecordColumn struct { // 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 diff --git a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-applicationreferencedatasource_recordformat.go b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-applicationreferencedatasource_recordformat.go index eeab0989b2..0cdc0453eb 100644 --- a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-applicationreferencedatasource_recordformat.go +++ b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-applicationreferencedatasource_recordformat.go @@ -26,6 +26,9 @@ type ApplicationReferenceDataSource_RecordFormat struct { // 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 diff --git a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-applicationreferencedatasource_referencedatasource.go b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-applicationreferencedatasource_referencedatasource.go index 144c7c8934..16ceec49d7 100644 --- a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-applicationreferencedatasource_referencedatasource.go +++ b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-applicationreferencedatasource_referencedatasource.go @@ -31,6 +31,9 @@ type ApplicationReferenceDataSource_ReferenceDataSource struct { // 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 diff --git a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-applicationreferencedatasource_referenceschema.go b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-applicationreferencedatasource_referenceschema.go index f85e688476..5f2e54441f 100644 --- a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-applicationreferencedatasource_referenceschema.go +++ b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-applicationreferencedatasource_referenceschema.go @@ -31,6 +31,9 @@ type ApplicationReferenceDataSource_ReferenceSchema struct { // 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 diff --git a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-applicationreferencedatasource_s3referencedatasource.go b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-applicationreferencedatasource_s3referencedatasource.go index 1e10057475..2a5a6c3b13 100644 --- a/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-applicationreferencedatasource_s3referencedatasource.go +++ b/cloudformation/kinesisanalyticsv2/aws-kinesisanalyticsv2-applicationreferencedatasource_s3referencedatasource.go @@ -26,6 +26,9 @@ type ApplicationReferenceDataSource_S3ReferenceDataSource struct { // 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 diff --git a/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream.go b/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream.go index 5c55054270..539009ed74 100644 --- a/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream.go +++ b/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream.go @@ -60,6 +60,9 @@ type DeliveryStream struct { // 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 @@ -77,12 +80,14 @@ func (r DeliveryStream) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -96,6 +101,7 @@ func (r *DeliveryStream) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -119,5 +125,8 @@ func (r *DeliveryStream) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_bufferinghints.go b/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_bufferinghints.go index cc77e16635..096450cf3d 100644 --- a/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_bufferinghints.go +++ b/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_bufferinghints.go @@ -26,6 +26,9 @@ type DeliveryStream_BufferingHints struct { // 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 diff --git a/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_cloudwatchloggingoptions.go b/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_cloudwatchloggingoptions.go index 45edd26132..a74c7d256e 100644 --- a/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_cloudwatchloggingoptions.go +++ b/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_cloudwatchloggingoptions.go @@ -31,6 +31,9 @@ type DeliveryStream_CloudWatchLoggingOptions struct { // 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 diff --git a/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_copycommand.go b/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_copycommand.go index 0109e13474..bf5abe16da 100644 --- a/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_copycommand.go +++ b/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_copycommand.go @@ -31,6 +31,9 @@ type DeliveryStream_CopyCommand struct { // 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 diff --git a/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_dataformatconversionconfiguration.go b/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_dataformatconversionconfiguration.go index a15f23b4ce..5a4038052a 100644 --- a/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_dataformatconversionconfiguration.go +++ b/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_dataformatconversionconfiguration.go @@ -36,6 +36,9 @@ type DeliveryStream_DataFormatConversionConfiguration struct { // 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 diff --git a/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_deserializer.go b/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_deserializer.go index 8867ac93a7..041360267d 100644 --- a/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_deserializer.go +++ b/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_deserializer.go @@ -26,6 +26,9 @@ type DeliveryStream_Deserializer struct { // 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 diff --git a/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_elasticsearchbufferinghints.go b/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_elasticsearchbufferinghints.go index 78d7860c93..6b61693c69 100644 --- a/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_elasticsearchbufferinghints.go +++ b/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_elasticsearchbufferinghints.go @@ -26,6 +26,9 @@ type DeliveryStream_ElasticsearchBufferingHints struct { // 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 diff --git a/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_elasticsearchdestinationconfiguration.go b/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_elasticsearchdestinationconfiguration.go index 82c6eb5e3b..c29881f282 100644 --- a/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_elasticsearchdestinationconfiguration.go +++ b/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_elasticsearchdestinationconfiguration.go @@ -71,6 +71,9 @@ type DeliveryStream_ElasticsearchDestinationConfiguration struct { // 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 diff --git a/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_elasticsearchretryoptions.go b/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_elasticsearchretryoptions.go index e3c146bb3a..908af61040 100644 --- a/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_elasticsearchretryoptions.go +++ b/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_elasticsearchretryoptions.go @@ -21,6 +21,9 @@ type DeliveryStream_ElasticsearchRetryOptions struct { // 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 diff --git a/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_encryptionconfiguration.go b/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_encryptionconfiguration.go index 2169123f0c..c61d27f1fd 100644 --- a/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_encryptionconfiguration.go +++ b/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_encryptionconfiguration.go @@ -26,6 +26,9 @@ type DeliveryStream_EncryptionConfiguration struct { // 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 diff --git a/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_extendeds3destinationconfiguration.go b/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_extendeds3destinationconfiguration.go index e9a6757674..bdd5d410d6 100644 --- a/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_extendeds3destinationconfiguration.go +++ b/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_extendeds3destinationconfiguration.go @@ -76,6 +76,9 @@ type DeliveryStream_ExtendedS3DestinationConfiguration struct { // 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 diff --git a/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_hivejsonserde.go b/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_hivejsonserde.go index cda35a9b73..4ff4240d47 100644 --- a/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_hivejsonserde.go +++ b/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_hivejsonserde.go @@ -21,6 +21,9 @@ type DeliveryStream_HiveJsonSerDe struct { // 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 diff --git a/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_inputformatconfiguration.go b/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_inputformatconfiguration.go index 4c2f6874e2..584f11e15d 100644 --- a/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_inputformatconfiguration.go +++ b/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_inputformatconfiguration.go @@ -21,6 +21,9 @@ type DeliveryStream_InputFormatConfiguration struct { // 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 diff --git a/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_kinesisstreamsourceconfiguration.go b/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_kinesisstreamsourceconfiguration.go index e84bfcdf98..8b14eb9df8 100644 --- a/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_kinesisstreamsourceconfiguration.go +++ b/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_kinesisstreamsourceconfiguration.go @@ -26,6 +26,9 @@ type DeliveryStream_KinesisStreamSourceConfiguration struct { // 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 diff --git a/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_kmsencryptionconfig.go b/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_kmsencryptionconfig.go index 504786e106..9fa382a6a0 100644 --- a/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_kmsencryptionconfig.go +++ b/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_kmsencryptionconfig.go @@ -21,6 +21,9 @@ type DeliveryStream_KMSEncryptionConfig struct { // 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 diff --git a/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_openxjsonserde.go b/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_openxjsonserde.go index 1679e13880..27cda6f255 100644 --- a/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_openxjsonserde.go +++ b/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_openxjsonserde.go @@ -31,6 +31,9 @@ type DeliveryStream_OpenXJsonSerDe struct { // 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 diff --git a/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_orcserde.go b/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_orcserde.go index 1ef9077c9c..32850cda66 100644 --- a/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_orcserde.go +++ b/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_orcserde.go @@ -66,6 +66,9 @@ type DeliveryStream_OrcSerDe struct { // 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 diff --git a/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_outputformatconfiguration.go b/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_outputformatconfiguration.go index af4b6748ed..193f199e37 100644 --- a/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_outputformatconfiguration.go +++ b/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_outputformatconfiguration.go @@ -21,6 +21,9 @@ type DeliveryStream_OutputFormatConfiguration struct { // 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 diff --git a/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_parquetserde.go b/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_parquetserde.go index efcddd2043..c43c4bfe86 100644 --- a/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_parquetserde.go +++ b/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_parquetserde.go @@ -46,6 +46,9 @@ type DeliveryStream_ParquetSerDe struct { // 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 diff --git a/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_processingconfiguration.go b/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_processingconfiguration.go index 971b0dc96b..83f55c3b70 100644 --- a/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_processingconfiguration.go +++ b/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_processingconfiguration.go @@ -26,6 +26,9 @@ type DeliveryStream_ProcessingConfiguration struct { // 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 diff --git a/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_processor.go b/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_processor.go index e09062ad63..e473420cfd 100644 --- a/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_processor.go +++ b/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_processor.go @@ -26,6 +26,9 @@ type DeliveryStream_Processor struct { // 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 diff --git a/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_processorparameter.go b/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_processorparameter.go index 6843bf05b4..71eaac5c2b 100644 --- a/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_processorparameter.go +++ b/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_processorparameter.go @@ -26,6 +26,9 @@ type DeliveryStream_ProcessorParameter struct { // 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 diff --git a/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_redshiftdestinationconfiguration.go b/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_redshiftdestinationconfiguration.go index 34b52d0c9b..d972b662f6 100644 --- a/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_redshiftdestinationconfiguration.go +++ b/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_redshiftdestinationconfiguration.go @@ -56,6 +56,9 @@ type DeliveryStream_RedshiftDestinationConfiguration struct { // 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 diff --git a/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_s3destinationconfiguration.go b/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_s3destinationconfiguration.go index 72790c7407..20e1a5713a 100644 --- a/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_s3destinationconfiguration.go +++ b/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_s3destinationconfiguration.go @@ -56,6 +56,9 @@ type DeliveryStream_S3DestinationConfiguration struct { // 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 diff --git a/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_schemaconfiguration.go b/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_schemaconfiguration.go index bcc83542b0..ebd0a1dbd0 100644 --- a/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_schemaconfiguration.go +++ b/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_schemaconfiguration.go @@ -46,6 +46,9 @@ type DeliveryStream_SchemaConfiguration struct { // 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 diff --git a/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_serializer.go b/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_serializer.go index 8f946a8473..5d09f9ee6c 100644 --- a/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_serializer.go +++ b/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_serializer.go @@ -26,6 +26,9 @@ type DeliveryStream_Serializer struct { // 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 diff --git a/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_splunkdestinationconfiguration.go b/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_splunkdestinationconfiguration.go index e226334379..d77daeb2b1 100644 --- a/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_splunkdestinationconfiguration.go +++ b/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_splunkdestinationconfiguration.go @@ -61,6 +61,9 @@ type DeliveryStream_SplunkDestinationConfiguration struct { // 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 diff --git a/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_splunkretryoptions.go b/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_splunkretryoptions.go index f70e9efa13..f539135499 100644 --- a/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_splunkretryoptions.go +++ b/cloudformation/kinesisfirehose/aws-kinesisfirehose-deliverystream_splunkretryoptions.go @@ -21,6 +21,9 @@ type DeliveryStream_SplunkRetryOptions struct { // 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 diff --git a/cloudformation/kms/aws-kms-alias.go b/cloudformation/kms/aws-kms-alias.go index a97599ce5f..53d7e1b150 100644 --- a/cloudformation/kms/aws-kms-alias.go +++ b/cloudformation/kms/aws-kms-alias.go @@ -30,6 +30,9 @@ type Alias struct { // 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 @@ -47,12 +50,14 @@ func (r Alias) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -66,6 +71,7 @@ func (r *Alias) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -89,5 +95,8 @@ func (r *Alias) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/kms/aws-kms-key.go b/cloudformation/kms/aws-kms-key.go index 8048f8f494..65ac17e5c2 100644 --- a/cloudformation/kms/aws-kms-key.go +++ b/cloudformation/kms/aws-kms-key.go @@ -56,6 +56,9 @@ type Key struct { // 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 @@ -73,12 +76,14 @@ func (r Key) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -92,6 +97,7 @@ func (r *Key) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -115,5 +121,8 @@ func (r *Key) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/lakeformation/aws-lakeformation-datalakesettings.go b/cloudformation/lakeformation/aws-lakeformation-datalakesettings.go index fdc97bcbe0..5c9b7cfa17 100644 --- a/cloudformation/lakeformation/aws-lakeformation-datalakesettings.go +++ b/cloudformation/lakeformation/aws-lakeformation-datalakesettings.go @@ -25,6 +25,9 @@ type DataLakeSettings struct { // 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 @@ -42,12 +45,14 @@ func (r DataLakeSettings) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -61,6 +66,7 @@ func (r *DataLakeSettings) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -84,5 +90,8 @@ func (r *DataLakeSettings) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/lakeformation/aws-lakeformation-datalakesettings_admins.go b/cloudformation/lakeformation/aws-lakeformation-datalakesettings_admins.go index f4fe9e196b..651298d15f 100644 --- a/cloudformation/lakeformation/aws-lakeformation-datalakesettings_admins.go +++ b/cloudformation/lakeformation/aws-lakeformation-datalakesettings_admins.go @@ -16,6 +16,9 @@ type DataLakeSettings_Admins struct { // 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 diff --git a/cloudformation/lakeformation/aws-lakeformation-datalakesettings_datalakeprincipal.go b/cloudformation/lakeformation/aws-lakeformation-datalakesettings_datalakeprincipal.go index e4a1748cdd..a91213575f 100644 --- a/cloudformation/lakeformation/aws-lakeformation-datalakesettings_datalakeprincipal.go +++ b/cloudformation/lakeformation/aws-lakeformation-datalakesettings_datalakeprincipal.go @@ -21,6 +21,9 @@ type DataLakeSettings_DataLakePrincipal struct { // 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 diff --git a/cloudformation/lakeformation/aws-lakeformation-permissions.go b/cloudformation/lakeformation/aws-lakeformation-permissions.go index 15e2d1317f..d10b3374df 100644 --- a/cloudformation/lakeformation/aws-lakeformation-permissions.go +++ b/cloudformation/lakeformation/aws-lakeformation-permissions.go @@ -40,6 +40,9 @@ type Permissions struct { // 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 @@ -57,12 +60,14 @@ func (r Permissions) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -76,6 +81,7 @@ func (r *Permissions) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -99,5 +105,8 @@ func (r *Permissions) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/lakeformation/aws-lakeformation-permissions_databaseresource.go b/cloudformation/lakeformation/aws-lakeformation-permissions_databaseresource.go index 092965b4e9..e34020a5a7 100644 --- a/cloudformation/lakeformation/aws-lakeformation-permissions_databaseresource.go +++ b/cloudformation/lakeformation/aws-lakeformation-permissions_databaseresource.go @@ -21,6 +21,9 @@ type Permissions_DatabaseResource struct { // 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 diff --git a/cloudformation/lakeformation/aws-lakeformation-permissions_datalakeprincipal.go b/cloudformation/lakeformation/aws-lakeformation-permissions_datalakeprincipal.go index e207743ce6..07db892863 100644 --- a/cloudformation/lakeformation/aws-lakeformation-permissions_datalakeprincipal.go +++ b/cloudformation/lakeformation/aws-lakeformation-permissions_datalakeprincipal.go @@ -21,6 +21,9 @@ type Permissions_DataLakePrincipal struct { // 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 diff --git a/cloudformation/lakeformation/aws-lakeformation-permissions_resource.go b/cloudformation/lakeformation/aws-lakeformation-permissions_resource.go index 037f58aad3..85a9b5d814 100644 --- a/cloudformation/lakeformation/aws-lakeformation-permissions_resource.go +++ b/cloudformation/lakeformation/aws-lakeformation-permissions_resource.go @@ -26,6 +26,9 @@ type Permissions_Resource struct { // 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 diff --git a/cloudformation/lakeformation/aws-lakeformation-permissions_tableresource.go b/cloudformation/lakeformation/aws-lakeformation-permissions_tableresource.go index 54ae9934f4..f7091cfac9 100644 --- a/cloudformation/lakeformation/aws-lakeformation-permissions_tableresource.go +++ b/cloudformation/lakeformation/aws-lakeformation-permissions_tableresource.go @@ -26,6 +26,9 @@ type Permissions_TableResource struct { // 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 diff --git a/cloudformation/lakeformation/aws-lakeformation-resource.go b/cloudformation/lakeformation/aws-lakeformation-resource.go index b50a692eee..350c2d27eb 100644 --- a/cloudformation/lakeformation/aws-lakeformation-resource.go +++ b/cloudformation/lakeformation/aws-lakeformation-resource.go @@ -35,6 +35,9 @@ type Resource struct { // 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 @@ -52,12 +55,14 @@ func (r Resource) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -71,6 +76,7 @@ func (r *Resource) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -94,5 +100,8 @@ func (r *Resource) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/lambda/aws-lambda-alias.go b/cloudformation/lambda/aws-lambda-alias.go index d9fabc5ba9..e51bd6268e 100644 --- a/cloudformation/lambda/aws-lambda-alias.go +++ b/cloudformation/lambda/aws-lambda-alias.go @@ -53,6 +53,9 @@ type Alias struct { // 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 @@ -70,6 +73,7 @@ func (r Alias) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` UpdatePolicy *policies.UpdatePolicy `json:"UpdatePolicy,omitempty"` }{ Type: r.AWSCloudFormationType(), @@ -77,6 +81,7 @@ func (r Alias) MarshalJSON() ([]byte, error) { DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, UpdatePolicy: r.AWSCloudFormationUpdatePolicy, }) } @@ -91,6 +96,7 @@ func (r *Alias) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -114,5 +120,8 @@ func (r *Alias) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/lambda/aws-lambda-alias_aliasroutingconfiguration.go b/cloudformation/lambda/aws-lambda-alias_aliasroutingconfiguration.go index 21f76dfeec..02ed6dd7b8 100644 --- a/cloudformation/lambda/aws-lambda-alias_aliasroutingconfiguration.go +++ b/cloudformation/lambda/aws-lambda-alias_aliasroutingconfiguration.go @@ -21,6 +21,9 @@ type Alias_AliasRoutingConfiguration struct { // 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 diff --git a/cloudformation/lambda/aws-lambda-alias_provisionedconcurrencyconfiguration.go b/cloudformation/lambda/aws-lambda-alias_provisionedconcurrencyconfiguration.go index d41d6d84ea..52a9bccae5 100644 --- a/cloudformation/lambda/aws-lambda-alias_provisionedconcurrencyconfiguration.go +++ b/cloudformation/lambda/aws-lambda-alias_provisionedconcurrencyconfiguration.go @@ -21,6 +21,9 @@ type Alias_ProvisionedConcurrencyConfiguration struct { // 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 diff --git a/cloudformation/lambda/aws-lambda-alias_versionweight.go b/cloudformation/lambda/aws-lambda-alias_versionweight.go index f3c21e3c9b..fe1f7724ce 100644 --- a/cloudformation/lambda/aws-lambda-alias_versionweight.go +++ b/cloudformation/lambda/aws-lambda-alias_versionweight.go @@ -26,6 +26,9 @@ type Alias_VersionWeight struct { // 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 diff --git a/cloudformation/lambda/aws-lambda-eventinvokeconfig.go b/cloudformation/lambda/aws-lambda-eventinvokeconfig.go index 9b1d969a11..0b071622d3 100644 --- a/cloudformation/lambda/aws-lambda-eventinvokeconfig.go +++ b/cloudformation/lambda/aws-lambda-eventinvokeconfig.go @@ -45,6 +45,9 @@ type EventInvokeConfig struct { // 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 @@ -62,12 +65,14 @@ func (r EventInvokeConfig) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -81,6 +86,7 @@ func (r *EventInvokeConfig) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -104,5 +110,8 @@ func (r *EventInvokeConfig) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/lambda/aws-lambda-eventinvokeconfig_destinationconfig.go b/cloudformation/lambda/aws-lambda-eventinvokeconfig_destinationconfig.go index a625e54e70..ebe4a74096 100644 --- a/cloudformation/lambda/aws-lambda-eventinvokeconfig_destinationconfig.go +++ b/cloudformation/lambda/aws-lambda-eventinvokeconfig_destinationconfig.go @@ -26,6 +26,9 @@ type EventInvokeConfig_DestinationConfig struct { // 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 diff --git a/cloudformation/lambda/aws-lambda-eventinvokeconfig_onfailure.go b/cloudformation/lambda/aws-lambda-eventinvokeconfig_onfailure.go index 81d9ba0a04..2e79e20c4c 100644 --- a/cloudformation/lambda/aws-lambda-eventinvokeconfig_onfailure.go +++ b/cloudformation/lambda/aws-lambda-eventinvokeconfig_onfailure.go @@ -21,6 +21,9 @@ type EventInvokeConfig_OnFailure struct { // 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 diff --git a/cloudformation/lambda/aws-lambda-eventinvokeconfig_onsuccess.go b/cloudformation/lambda/aws-lambda-eventinvokeconfig_onsuccess.go index 183b548510..781293f5f6 100644 --- a/cloudformation/lambda/aws-lambda-eventinvokeconfig_onsuccess.go +++ b/cloudformation/lambda/aws-lambda-eventinvokeconfig_onsuccess.go @@ -21,6 +21,9 @@ type EventInvokeConfig_OnSuccess struct { // 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 diff --git a/cloudformation/lambda/aws-lambda-eventsourcemapping.go b/cloudformation/lambda/aws-lambda-eventsourcemapping.go index 8aa8530a11..db312417c7 100644 --- a/cloudformation/lambda/aws-lambda-eventsourcemapping.go +++ b/cloudformation/lambda/aws-lambda-eventsourcemapping.go @@ -75,6 +75,9 @@ type EventSourceMapping struct { // 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 @@ -92,12 +95,14 @@ func (r EventSourceMapping) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -111,6 +116,7 @@ func (r *EventSourceMapping) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -134,5 +140,8 @@ func (r *EventSourceMapping) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/lambda/aws-lambda-eventsourcemapping_destinationconfig.go b/cloudformation/lambda/aws-lambda-eventsourcemapping_destinationconfig.go index 9c1439f445..d7aeacebdc 100644 --- a/cloudformation/lambda/aws-lambda-eventsourcemapping_destinationconfig.go +++ b/cloudformation/lambda/aws-lambda-eventsourcemapping_destinationconfig.go @@ -21,6 +21,9 @@ type EventSourceMapping_DestinationConfig struct { // 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 diff --git a/cloudformation/lambda/aws-lambda-eventsourcemapping_onfailure.go b/cloudformation/lambda/aws-lambda-eventsourcemapping_onfailure.go index c08adedc2d..eb10ba2ab2 100644 --- a/cloudformation/lambda/aws-lambda-eventsourcemapping_onfailure.go +++ b/cloudformation/lambda/aws-lambda-eventsourcemapping_onfailure.go @@ -21,6 +21,9 @@ type EventSourceMapping_OnFailure struct { // 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 diff --git a/cloudformation/lambda/aws-lambda-function.go b/cloudformation/lambda/aws-lambda-function.go index 93dcca2c76..5b2cba36bc 100644 --- a/cloudformation/lambda/aws-lambda-function.go +++ b/cloudformation/lambda/aws-lambda-function.go @@ -101,6 +101,9 @@ type Function struct { // 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 @@ -118,12 +121,14 @@ func (r Function) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -137,6 +142,7 @@ func (r *Function) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -160,5 +166,8 @@ func (r *Function) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/lambda/aws-lambda-function_code.go b/cloudformation/lambda/aws-lambda-function_code.go index f18be7e58d..d0dbc9275f 100644 --- a/cloudformation/lambda/aws-lambda-function_code.go +++ b/cloudformation/lambda/aws-lambda-function_code.go @@ -36,6 +36,9 @@ type Function_Code struct { // 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 diff --git a/cloudformation/lambda/aws-lambda-function_deadletterconfig.go b/cloudformation/lambda/aws-lambda-function_deadletterconfig.go index 082cd86e08..05bd414a26 100644 --- a/cloudformation/lambda/aws-lambda-function_deadletterconfig.go +++ b/cloudformation/lambda/aws-lambda-function_deadletterconfig.go @@ -21,6 +21,9 @@ type Function_DeadLetterConfig struct { // 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 diff --git a/cloudformation/lambda/aws-lambda-function_environment.go b/cloudformation/lambda/aws-lambda-function_environment.go index c5fe33ec02..5d2927da8d 100644 --- a/cloudformation/lambda/aws-lambda-function_environment.go +++ b/cloudformation/lambda/aws-lambda-function_environment.go @@ -21,6 +21,9 @@ type Function_Environment struct { // 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 diff --git a/cloudformation/lambda/aws-lambda-function_tracingconfig.go b/cloudformation/lambda/aws-lambda-function_tracingconfig.go index a3d5bff145..632464b355 100644 --- a/cloudformation/lambda/aws-lambda-function_tracingconfig.go +++ b/cloudformation/lambda/aws-lambda-function_tracingconfig.go @@ -21,6 +21,9 @@ type Function_TracingConfig struct { // 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 diff --git a/cloudformation/lambda/aws-lambda-function_vpcconfig.go b/cloudformation/lambda/aws-lambda-function_vpcconfig.go index 2b57b92b22..f1731b90ec 100644 --- a/cloudformation/lambda/aws-lambda-function_vpcconfig.go +++ b/cloudformation/lambda/aws-lambda-function_vpcconfig.go @@ -26,6 +26,9 @@ type Function_VpcConfig struct { // 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 diff --git a/cloudformation/lambda/aws-lambda-layerversion.go b/cloudformation/lambda/aws-lambda-layerversion.go index 98b90bf2c3..a09ade02d1 100644 --- a/cloudformation/lambda/aws-lambda-layerversion.go +++ b/cloudformation/lambda/aws-lambda-layerversion.go @@ -45,6 +45,9 @@ type LayerVersion struct { // 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 @@ -62,12 +65,14 @@ func (r LayerVersion) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -81,6 +86,7 @@ func (r *LayerVersion) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -104,5 +110,8 @@ func (r *LayerVersion) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/lambda/aws-lambda-layerversion_content.go b/cloudformation/lambda/aws-lambda-layerversion_content.go index 0a0655ab76..4e8a343c3d 100644 --- a/cloudformation/lambda/aws-lambda-layerversion_content.go +++ b/cloudformation/lambda/aws-lambda-layerversion_content.go @@ -31,6 +31,9 @@ type LayerVersion_Content struct { // 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 diff --git a/cloudformation/lambda/aws-lambda-layerversionpermission.go b/cloudformation/lambda/aws-lambda-layerversionpermission.go index 465a0f32a5..3069af1d68 100644 --- a/cloudformation/lambda/aws-lambda-layerversionpermission.go +++ b/cloudformation/lambda/aws-lambda-layerversionpermission.go @@ -40,6 +40,9 @@ type LayerVersionPermission struct { // 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 @@ -57,12 +60,14 @@ func (r LayerVersionPermission) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -76,6 +81,7 @@ func (r *LayerVersionPermission) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -99,5 +105,8 @@ func (r *LayerVersionPermission) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/lambda/aws-lambda-permission.go b/cloudformation/lambda/aws-lambda-permission.go index d28031971e..038ce82f0d 100644 --- a/cloudformation/lambda/aws-lambda-permission.go +++ b/cloudformation/lambda/aws-lambda-permission.go @@ -50,6 +50,9 @@ type Permission struct { // 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 @@ -67,12 +70,14 @@ func (r Permission) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -86,6 +91,7 @@ func (r *Permission) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -109,5 +115,8 @@ func (r *Permission) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/lambda/aws-lambda-version.go b/cloudformation/lambda/aws-lambda-version.go index aa59d7fff7..8da1be8d3f 100644 --- a/cloudformation/lambda/aws-lambda-version.go +++ b/cloudformation/lambda/aws-lambda-version.go @@ -40,6 +40,9 @@ type Version struct { // 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 @@ -57,12 +60,14 @@ func (r Version) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -76,6 +81,7 @@ func (r *Version) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -99,5 +105,8 @@ func (r *Version) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/lambda/aws-lambda-version_provisionedconcurrencyconfiguration.go b/cloudformation/lambda/aws-lambda-version_provisionedconcurrencyconfiguration.go index 436adcd9bf..bddb90a827 100644 --- a/cloudformation/lambda/aws-lambda-version_provisionedconcurrencyconfiguration.go +++ b/cloudformation/lambda/aws-lambda-version_provisionedconcurrencyconfiguration.go @@ -21,6 +21,9 @@ type Version_ProvisionedConcurrencyConfiguration struct { // 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 diff --git a/cloudformation/logs/aws-logs-destination.go b/cloudformation/logs/aws-logs-destination.go index 5f2d896bca..017285af88 100644 --- a/cloudformation/logs/aws-logs-destination.go +++ b/cloudformation/logs/aws-logs-destination.go @@ -40,6 +40,9 @@ type Destination struct { // 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 @@ -57,12 +60,14 @@ func (r Destination) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -76,6 +81,7 @@ func (r *Destination) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -99,5 +105,8 @@ func (r *Destination) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/logs/aws-logs-loggroup.go b/cloudformation/logs/aws-logs-loggroup.go index 7d5ce83145..564a2ca099 100644 --- a/cloudformation/logs/aws-logs-loggroup.go +++ b/cloudformation/logs/aws-logs-loggroup.go @@ -30,6 +30,9 @@ type LogGroup struct { // 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 @@ -47,12 +50,14 @@ func (r LogGroup) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -66,6 +71,7 @@ func (r *LogGroup) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -89,5 +95,8 @@ func (r *LogGroup) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/logs/aws-logs-logstream.go b/cloudformation/logs/aws-logs-logstream.go index 021bc21e84..86fb9f84f5 100644 --- a/cloudformation/logs/aws-logs-logstream.go +++ b/cloudformation/logs/aws-logs-logstream.go @@ -30,6 +30,9 @@ type LogStream struct { // 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 @@ -47,12 +50,14 @@ func (r LogStream) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -66,6 +71,7 @@ func (r *LogStream) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -89,5 +95,8 @@ func (r *LogStream) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/logs/aws-logs-metricfilter.go b/cloudformation/logs/aws-logs-metricfilter.go index b75000b2d3..b0181dd8fd 100644 --- a/cloudformation/logs/aws-logs-metricfilter.go +++ b/cloudformation/logs/aws-logs-metricfilter.go @@ -35,6 +35,9 @@ type MetricFilter struct { // 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 @@ -52,12 +55,14 @@ func (r MetricFilter) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -71,6 +76,7 @@ func (r *MetricFilter) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -94,5 +100,8 @@ func (r *MetricFilter) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/logs/aws-logs-metricfilter_metrictransformation.go b/cloudformation/logs/aws-logs-metricfilter_metrictransformation.go index 099e7c7cc6..ebbd72dff9 100644 --- a/cloudformation/logs/aws-logs-metricfilter_metrictransformation.go +++ b/cloudformation/logs/aws-logs-metricfilter_metrictransformation.go @@ -36,6 +36,9 @@ type MetricFilter_MetricTransformation struct { // 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 diff --git a/cloudformation/logs/aws-logs-subscriptionfilter.go b/cloudformation/logs/aws-logs-subscriptionfilter.go index 204f136e24..524c3a169c 100644 --- a/cloudformation/logs/aws-logs-subscriptionfilter.go +++ b/cloudformation/logs/aws-logs-subscriptionfilter.go @@ -40,6 +40,9 @@ type SubscriptionFilter struct { // 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 @@ -57,12 +60,14 @@ func (r SubscriptionFilter) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -76,6 +81,7 @@ func (r *SubscriptionFilter) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -99,5 +105,8 @@ func (r *SubscriptionFilter) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/managedblockchain/aws-managedblockchain-member.go b/cloudformation/managedblockchain/aws-managedblockchain-member.go index 5943105df8..07b6d5701d 100644 --- a/cloudformation/managedblockchain/aws-managedblockchain-member.go +++ b/cloudformation/managedblockchain/aws-managedblockchain-member.go @@ -40,6 +40,9 @@ type Member struct { // 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 @@ -57,12 +60,14 @@ func (r Member) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -76,6 +81,7 @@ func (r *Member) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -99,5 +105,8 @@ func (r *Member) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/managedblockchain/aws-managedblockchain-member_approvalthresholdpolicy.go b/cloudformation/managedblockchain/aws-managedblockchain-member_approvalthresholdpolicy.go index 748362f41b..86f2625b4d 100644 --- a/cloudformation/managedblockchain/aws-managedblockchain-member_approvalthresholdpolicy.go +++ b/cloudformation/managedblockchain/aws-managedblockchain-member_approvalthresholdpolicy.go @@ -31,6 +31,9 @@ type Member_ApprovalThresholdPolicy struct { // 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 diff --git a/cloudformation/managedblockchain/aws-managedblockchain-member_memberconfiguration.go b/cloudformation/managedblockchain/aws-managedblockchain-member_memberconfiguration.go index 91362c4360..9ae645d556 100644 --- a/cloudformation/managedblockchain/aws-managedblockchain-member_memberconfiguration.go +++ b/cloudformation/managedblockchain/aws-managedblockchain-member_memberconfiguration.go @@ -31,6 +31,9 @@ type Member_MemberConfiguration struct { // 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 diff --git a/cloudformation/managedblockchain/aws-managedblockchain-member_memberfabricconfiguration.go b/cloudformation/managedblockchain/aws-managedblockchain-member_memberfabricconfiguration.go index 3ad80e499b..00b4346835 100644 --- a/cloudformation/managedblockchain/aws-managedblockchain-member_memberfabricconfiguration.go +++ b/cloudformation/managedblockchain/aws-managedblockchain-member_memberfabricconfiguration.go @@ -26,6 +26,9 @@ type Member_MemberFabricConfiguration struct { // 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 diff --git a/cloudformation/managedblockchain/aws-managedblockchain-member_memberframeworkconfiguration.go b/cloudformation/managedblockchain/aws-managedblockchain-member_memberframeworkconfiguration.go index d180bacf3c..f428f24062 100644 --- a/cloudformation/managedblockchain/aws-managedblockchain-member_memberframeworkconfiguration.go +++ b/cloudformation/managedblockchain/aws-managedblockchain-member_memberframeworkconfiguration.go @@ -21,6 +21,9 @@ type Member_MemberFrameworkConfiguration struct { // 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 diff --git a/cloudformation/managedblockchain/aws-managedblockchain-member_networkconfiguration.go b/cloudformation/managedblockchain/aws-managedblockchain-member_networkconfiguration.go index 3b23f5d12f..76dc20cba5 100644 --- a/cloudformation/managedblockchain/aws-managedblockchain-member_networkconfiguration.go +++ b/cloudformation/managedblockchain/aws-managedblockchain-member_networkconfiguration.go @@ -46,6 +46,9 @@ type Member_NetworkConfiguration struct { // 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 diff --git a/cloudformation/managedblockchain/aws-managedblockchain-member_networkfabricconfiguration.go b/cloudformation/managedblockchain/aws-managedblockchain-member_networkfabricconfiguration.go index 009bbd4512..a2703767a5 100644 --- a/cloudformation/managedblockchain/aws-managedblockchain-member_networkfabricconfiguration.go +++ b/cloudformation/managedblockchain/aws-managedblockchain-member_networkfabricconfiguration.go @@ -21,6 +21,9 @@ type Member_NetworkFabricConfiguration struct { // 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 diff --git a/cloudformation/managedblockchain/aws-managedblockchain-member_networkframeworkconfiguration.go b/cloudformation/managedblockchain/aws-managedblockchain-member_networkframeworkconfiguration.go index ca84e212c1..cdfd592d29 100644 --- a/cloudformation/managedblockchain/aws-managedblockchain-member_networkframeworkconfiguration.go +++ b/cloudformation/managedblockchain/aws-managedblockchain-member_networkframeworkconfiguration.go @@ -21,6 +21,9 @@ type Member_NetworkFrameworkConfiguration struct { // 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 diff --git a/cloudformation/managedblockchain/aws-managedblockchain-member_votingpolicy.go b/cloudformation/managedblockchain/aws-managedblockchain-member_votingpolicy.go index 422b6fad61..c2b710e971 100644 --- a/cloudformation/managedblockchain/aws-managedblockchain-member_votingpolicy.go +++ b/cloudformation/managedblockchain/aws-managedblockchain-member_votingpolicy.go @@ -21,6 +21,9 @@ type Member_VotingPolicy struct { // 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 diff --git a/cloudformation/managedblockchain/aws-managedblockchain-node.go b/cloudformation/managedblockchain/aws-managedblockchain-node.go index 9ae7cda4dc..c26f024364 100644 --- a/cloudformation/managedblockchain/aws-managedblockchain-node.go +++ b/cloudformation/managedblockchain/aws-managedblockchain-node.go @@ -35,6 +35,9 @@ type Node struct { // 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 @@ -52,12 +55,14 @@ func (r Node) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -71,6 +76,7 @@ func (r *Node) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -94,5 +100,8 @@ func (r *Node) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/managedblockchain/aws-managedblockchain-node_nodeconfiguration.go b/cloudformation/managedblockchain/aws-managedblockchain-node_nodeconfiguration.go index 2a51809ff6..466d3f4e3f 100644 --- a/cloudformation/managedblockchain/aws-managedblockchain-node_nodeconfiguration.go +++ b/cloudformation/managedblockchain/aws-managedblockchain-node_nodeconfiguration.go @@ -26,6 +26,9 @@ type Node_NodeConfiguration struct { // 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 diff --git a/cloudformation/mediaconvert/aws-mediaconvert-jobtemplate.go b/cloudformation/mediaconvert/aws-mediaconvert-jobtemplate.go index a51a5878f9..1904facd55 100644 --- a/cloudformation/mediaconvert/aws-mediaconvert-jobtemplate.go +++ b/cloudformation/mediaconvert/aws-mediaconvert-jobtemplate.go @@ -65,6 +65,9 @@ type JobTemplate struct { // 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 @@ -82,12 +85,14 @@ func (r JobTemplate) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -101,6 +106,7 @@ func (r *JobTemplate) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -124,5 +130,8 @@ func (r *JobTemplate) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/mediaconvert/aws-mediaconvert-jobtemplate_accelerationsettings.go b/cloudformation/mediaconvert/aws-mediaconvert-jobtemplate_accelerationsettings.go index 0b77f54055..2bc9b918b1 100644 --- a/cloudformation/mediaconvert/aws-mediaconvert-jobtemplate_accelerationsettings.go +++ b/cloudformation/mediaconvert/aws-mediaconvert-jobtemplate_accelerationsettings.go @@ -21,6 +21,9 @@ type JobTemplate_AccelerationSettings struct { // 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 diff --git a/cloudformation/mediaconvert/aws-mediaconvert-preset.go b/cloudformation/mediaconvert/aws-mediaconvert-preset.go index 5f5b25e375..eca900706c 100644 --- a/cloudformation/mediaconvert/aws-mediaconvert-preset.go +++ b/cloudformation/mediaconvert/aws-mediaconvert-preset.go @@ -45,6 +45,9 @@ type Preset struct { // 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 @@ -62,12 +65,14 @@ func (r Preset) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -81,6 +86,7 @@ func (r *Preset) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -104,5 +110,8 @@ func (r *Preset) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/mediaconvert/aws-mediaconvert-queue.go b/cloudformation/mediaconvert/aws-mediaconvert-queue.go index 2dd464673f..857dbc3b88 100644 --- a/cloudformation/mediaconvert/aws-mediaconvert-queue.go +++ b/cloudformation/mediaconvert/aws-mediaconvert-queue.go @@ -45,6 +45,9 @@ type Queue struct { // 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 @@ -62,12 +65,14 @@ func (r Queue) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -81,6 +86,7 @@ func (r *Queue) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -104,5 +110,8 @@ func (r *Queue) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/medialive/aws-medialive-channel.go b/cloudformation/medialive/aws-medialive-channel.go index 11fe23f127..1f9d64c0c2 100644 --- a/cloudformation/medialive/aws-medialive-channel.go +++ b/cloudformation/medialive/aws-medialive-channel.go @@ -65,6 +65,9 @@ type Channel struct { // 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 @@ -82,12 +85,14 @@ func (r Channel) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -101,6 +106,7 @@ func (r *Channel) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -124,5 +130,8 @@ func (r *Channel) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/medialive/aws-medialive-channel_aribsourcesettings.go b/cloudformation/medialive/aws-medialive-channel_aribsourcesettings.go index e0e6e2ef1a..6e876a6eb7 100644 --- a/cloudformation/medialive/aws-medialive-channel_aribsourcesettings.go +++ b/cloudformation/medialive/aws-medialive-channel_aribsourcesettings.go @@ -16,6 +16,9 @@ type Channel_AribSourceSettings struct { // 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 diff --git a/cloudformation/medialive/aws-medialive-channel_audiolanguageselection.go b/cloudformation/medialive/aws-medialive-channel_audiolanguageselection.go index 6514e94c80..84b4c6eb26 100644 --- a/cloudformation/medialive/aws-medialive-channel_audiolanguageselection.go +++ b/cloudformation/medialive/aws-medialive-channel_audiolanguageselection.go @@ -26,6 +26,9 @@ type Channel_AudioLanguageSelection struct { // 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 diff --git a/cloudformation/medialive/aws-medialive-channel_audiopidselection.go b/cloudformation/medialive/aws-medialive-channel_audiopidselection.go index 2836321438..31b7ec6212 100644 --- a/cloudformation/medialive/aws-medialive-channel_audiopidselection.go +++ b/cloudformation/medialive/aws-medialive-channel_audiopidselection.go @@ -21,6 +21,9 @@ type Channel_AudioPidSelection struct { // 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 diff --git a/cloudformation/medialive/aws-medialive-channel_audioselector.go b/cloudformation/medialive/aws-medialive-channel_audioselector.go index 82ff0cb5d2..57872aca04 100644 --- a/cloudformation/medialive/aws-medialive-channel_audioselector.go +++ b/cloudformation/medialive/aws-medialive-channel_audioselector.go @@ -26,6 +26,9 @@ type Channel_AudioSelector struct { // 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 diff --git a/cloudformation/medialive/aws-medialive-channel_audioselectorsettings.go b/cloudformation/medialive/aws-medialive-channel_audioselectorsettings.go index e079817e7a..97aaf8f919 100644 --- a/cloudformation/medialive/aws-medialive-channel_audioselectorsettings.go +++ b/cloudformation/medialive/aws-medialive-channel_audioselectorsettings.go @@ -26,6 +26,9 @@ type Channel_AudioSelectorSettings struct { // 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 diff --git a/cloudformation/medialive/aws-medialive-channel_captionselector.go b/cloudformation/medialive/aws-medialive-channel_captionselector.go index dfe9e0e982..898592c3b6 100644 --- a/cloudformation/medialive/aws-medialive-channel_captionselector.go +++ b/cloudformation/medialive/aws-medialive-channel_captionselector.go @@ -31,6 +31,9 @@ type Channel_CaptionSelector struct { // 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 diff --git a/cloudformation/medialive/aws-medialive-channel_captionselectorsettings.go b/cloudformation/medialive/aws-medialive-channel_captionselectorsettings.go index d138cb6469..5f695029f5 100644 --- a/cloudformation/medialive/aws-medialive-channel_captionselectorsettings.go +++ b/cloudformation/medialive/aws-medialive-channel_captionselectorsettings.go @@ -46,6 +46,9 @@ type Channel_CaptionSelectorSettings struct { // 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 diff --git a/cloudformation/medialive/aws-medialive-channel_dvbsubsourcesettings.go b/cloudformation/medialive/aws-medialive-channel_dvbsubsourcesettings.go index b164861c49..75eb0ed1fb 100644 --- a/cloudformation/medialive/aws-medialive-channel_dvbsubsourcesettings.go +++ b/cloudformation/medialive/aws-medialive-channel_dvbsubsourcesettings.go @@ -21,6 +21,9 @@ type Channel_DvbSubSourceSettings struct { // 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 diff --git a/cloudformation/medialive/aws-medialive-channel_embeddedsourcesettings.go b/cloudformation/medialive/aws-medialive-channel_embeddedsourcesettings.go index 3300fa9f3b..1d4d3ce02e 100644 --- a/cloudformation/medialive/aws-medialive-channel_embeddedsourcesettings.go +++ b/cloudformation/medialive/aws-medialive-channel_embeddedsourcesettings.go @@ -36,6 +36,9 @@ type Channel_EmbeddedSourceSettings struct { // 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 diff --git a/cloudformation/medialive/aws-medialive-channel_hlsinputsettings.go b/cloudformation/medialive/aws-medialive-channel_hlsinputsettings.go index a6e540558a..dbb200dbe1 100644 --- a/cloudformation/medialive/aws-medialive-channel_hlsinputsettings.go +++ b/cloudformation/medialive/aws-medialive-channel_hlsinputsettings.go @@ -36,6 +36,9 @@ type Channel_HlsInputSettings struct { // 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 diff --git a/cloudformation/medialive/aws-medialive-channel_inputattachment.go b/cloudformation/medialive/aws-medialive-channel_inputattachment.go index c5bcc5c6fe..ad1b49f997 100644 --- a/cloudformation/medialive/aws-medialive-channel_inputattachment.go +++ b/cloudformation/medialive/aws-medialive-channel_inputattachment.go @@ -31,6 +31,9 @@ type Channel_InputAttachment struct { // 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 diff --git a/cloudformation/medialive/aws-medialive-channel_inputsettings.go b/cloudformation/medialive/aws-medialive-channel_inputsettings.go index 55e6147f0d..d7042f194d 100644 --- a/cloudformation/medialive/aws-medialive-channel_inputsettings.go +++ b/cloudformation/medialive/aws-medialive-channel_inputsettings.go @@ -61,6 +61,9 @@ type Channel_InputSettings struct { // 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 diff --git a/cloudformation/medialive/aws-medialive-channel_inputspecification.go b/cloudformation/medialive/aws-medialive-channel_inputspecification.go index 3cd5959a86..cf568bee22 100644 --- a/cloudformation/medialive/aws-medialive-channel_inputspecification.go +++ b/cloudformation/medialive/aws-medialive-channel_inputspecification.go @@ -31,6 +31,9 @@ type Channel_InputSpecification struct { // 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 diff --git a/cloudformation/medialive/aws-medialive-channel_mediapackageoutputdestinationsettings.go b/cloudformation/medialive/aws-medialive-channel_mediapackageoutputdestinationsettings.go index 3fd413e11d..669b360dcb 100644 --- a/cloudformation/medialive/aws-medialive-channel_mediapackageoutputdestinationsettings.go +++ b/cloudformation/medialive/aws-medialive-channel_mediapackageoutputdestinationsettings.go @@ -21,6 +21,9 @@ type Channel_MediaPackageOutputDestinationSettings struct { // 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 diff --git a/cloudformation/medialive/aws-medialive-channel_networkinputsettings.go b/cloudformation/medialive/aws-medialive-channel_networkinputsettings.go index 336cdb8f8e..33b2d7e746 100644 --- a/cloudformation/medialive/aws-medialive-channel_networkinputsettings.go +++ b/cloudformation/medialive/aws-medialive-channel_networkinputsettings.go @@ -26,6 +26,9 @@ type Channel_NetworkInputSettings struct { // 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 diff --git a/cloudformation/medialive/aws-medialive-channel_outputdestination.go b/cloudformation/medialive/aws-medialive-channel_outputdestination.go index f32a83f8c6..f4b2506bed 100644 --- a/cloudformation/medialive/aws-medialive-channel_outputdestination.go +++ b/cloudformation/medialive/aws-medialive-channel_outputdestination.go @@ -31,6 +31,9 @@ type Channel_OutputDestination struct { // 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 diff --git a/cloudformation/medialive/aws-medialive-channel_outputdestinationsettings.go b/cloudformation/medialive/aws-medialive-channel_outputdestinationsettings.go index 6936655048..5d61c27367 100644 --- a/cloudformation/medialive/aws-medialive-channel_outputdestinationsettings.go +++ b/cloudformation/medialive/aws-medialive-channel_outputdestinationsettings.go @@ -36,6 +36,9 @@ type Channel_OutputDestinationSettings struct { // 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 diff --git a/cloudformation/medialive/aws-medialive-channel_scte20sourcesettings.go b/cloudformation/medialive/aws-medialive-channel_scte20sourcesettings.go index e096667e83..8924300739 100644 --- a/cloudformation/medialive/aws-medialive-channel_scte20sourcesettings.go +++ b/cloudformation/medialive/aws-medialive-channel_scte20sourcesettings.go @@ -26,6 +26,9 @@ type Channel_Scte20SourceSettings struct { // 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 diff --git a/cloudformation/medialive/aws-medialive-channel_scte27sourcesettings.go b/cloudformation/medialive/aws-medialive-channel_scte27sourcesettings.go index 1dd8f3f2de..4033a85fdd 100644 --- a/cloudformation/medialive/aws-medialive-channel_scte27sourcesettings.go +++ b/cloudformation/medialive/aws-medialive-channel_scte27sourcesettings.go @@ -21,6 +21,9 @@ type Channel_Scte27SourceSettings struct { // 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 diff --git a/cloudformation/medialive/aws-medialive-channel_teletextsourcesettings.go b/cloudformation/medialive/aws-medialive-channel_teletextsourcesettings.go index ccc5626cb0..7626cf6014 100644 --- a/cloudformation/medialive/aws-medialive-channel_teletextsourcesettings.go +++ b/cloudformation/medialive/aws-medialive-channel_teletextsourcesettings.go @@ -21,6 +21,9 @@ type Channel_TeletextSourceSettings struct { // 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 diff --git a/cloudformation/medialive/aws-medialive-channel_videoselector.go b/cloudformation/medialive/aws-medialive-channel_videoselector.go index 1db8006cb4..1002abb66f 100644 --- a/cloudformation/medialive/aws-medialive-channel_videoselector.go +++ b/cloudformation/medialive/aws-medialive-channel_videoselector.go @@ -31,6 +31,9 @@ type Channel_VideoSelector struct { // 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 diff --git a/cloudformation/medialive/aws-medialive-channel_videoselectorpid.go b/cloudformation/medialive/aws-medialive-channel_videoselectorpid.go index 1f079c318f..ff1c4da67e 100644 --- a/cloudformation/medialive/aws-medialive-channel_videoselectorpid.go +++ b/cloudformation/medialive/aws-medialive-channel_videoselectorpid.go @@ -21,6 +21,9 @@ type Channel_VideoSelectorPid struct { // 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 diff --git a/cloudformation/medialive/aws-medialive-channel_videoselectorprogramid.go b/cloudformation/medialive/aws-medialive-channel_videoselectorprogramid.go index 6733524f07..0ebc2a9749 100644 --- a/cloudformation/medialive/aws-medialive-channel_videoselectorprogramid.go +++ b/cloudformation/medialive/aws-medialive-channel_videoselectorprogramid.go @@ -21,6 +21,9 @@ type Channel_VideoSelectorProgramId struct { // 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 diff --git a/cloudformation/medialive/aws-medialive-channel_videoselectorsettings.go b/cloudformation/medialive/aws-medialive-channel_videoselectorsettings.go index ef81492bae..12b0567fc0 100644 --- a/cloudformation/medialive/aws-medialive-channel_videoselectorsettings.go +++ b/cloudformation/medialive/aws-medialive-channel_videoselectorsettings.go @@ -26,6 +26,9 @@ type Channel_VideoSelectorSettings struct { // 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 diff --git a/cloudformation/medialive/aws-medialive-input.go b/cloudformation/medialive/aws-medialive-input.go index 22cfa84732..3a27c7980c 100644 --- a/cloudformation/medialive/aws-medialive-input.go +++ b/cloudformation/medialive/aws-medialive-input.go @@ -65,6 +65,9 @@ type Input struct { // 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 @@ -82,12 +85,14 @@ func (r Input) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -101,6 +106,7 @@ func (r *Input) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -124,5 +130,8 @@ func (r *Input) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/medialive/aws-medialive-input_inputdestinationrequest.go b/cloudformation/medialive/aws-medialive-input_inputdestinationrequest.go index c5a2c992b3..3d6f832199 100644 --- a/cloudformation/medialive/aws-medialive-input_inputdestinationrequest.go +++ b/cloudformation/medialive/aws-medialive-input_inputdestinationrequest.go @@ -21,6 +21,9 @@ type Input_InputDestinationRequest struct { // 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 diff --git a/cloudformation/medialive/aws-medialive-input_inputsourcerequest.go b/cloudformation/medialive/aws-medialive-input_inputsourcerequest.go index 0fa6ae7d23..643a96ae87 100644 --- a/cloudformation/medialive/aws-medialive-input_inputsourcerequest.go +++ b/cloudformation/medialive/aws-medialive-input_inputsourcerequest.go @@ -31,6 +31,9 @@ type Input_InputSourceRequest struct { // 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 diff --git a/cloudformation/medialive/aws-medialive-input_inputvpcrequest.go b/cloudformation/medialive/aws-medialive-input_inputvpcrequest.go index 71d03817e0..5d4374146d 100644 --- a/cloudformation/medialive/aws-medialive-input_inputvpcrequest.go +++ b/cloudformation/medialive/aws-medialive-input_inputvpcrequest.go @@ -26,6 +26,9 @@ type Input_InputVpcRequest struct { // 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 diff --git a/cloudformation/medialive/aws-medialive-input_mediaconnectflowrequest.go b/cloudformation/medialive/aws-medialive-input_mediaconnectflowrequest.go index 722de5d8fe..48313051c8 100644 --- a/cloudformation/medialive/aws-medialive-input_mediaconnectflowrequest.go +++ b/cloudformation/medialive/aws-medialive-input_mediaconnectflowrequest.go @@ -21,6 +21,9 @@ type Input_MediaConnectFlowRequest struct { // 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 diff --git a/cloudformation/medialive/aws-medialive-inputsecuritygroup.go b/cloudformation/medialive/aws-medialive-inputsecuritygroup.go index ce28d3fa9c..b01017d933 100644 --- a/cloudformation/medialive/aws-medialive-inputsecuritygroup.go +++ b/cloudformation/medialive/aws-medialive-inputsecuritygroup.go @@ -30,6 +30,9 @@ type InputSecurityGroup struct { // 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 @@ -47,12 +50,14 @@ func (r InputSecurityGroup) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -66,6 +71,7 @@ func (r *InputSecurityGroup) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -89,5 +95,8 @@ func (r *InputSecurityGroup) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/medialive/aws-medialive-inputsecuritygroup_inputwhitelistrulecidr.go b/cloudformation/medialive/aws-medialive-inputsecuritygroup_inputwhitelistrulecidr.go index ee69483b3c..6e3b8887ee 100644 --- a/cloudformation/medialive/aws-medialive-inputsecuritygroup_inputwhitelistrulecidr.go +++ b/cloudformation/medialive/aws-medialive-inputsecuritygroup_inputwhitelistrulecidr.go @@ -21,6 +21,9 @@ type InputSecurityGroup_InputWhitelistRuleCidr struct { // 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 diff --git a/cloudformation/mediastore/aws-mediastore-container.go b/cloudformation/mediastore/aws-mediastore-container.go index 3001efb16c..7cc8626f4d 100644 --- a/cloudformation/mediastore/aws-mediastore-container.go +++ b/cloudformation/mediastore/aws-mediastore-container.go @@ -45,6 +45,9 @@ type Container struct { // 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 @@ -62,12 +65,14 @@ func (r Container) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -81,6 +86,7 @@ func (r *Container) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -104,5 +110,8 @@ func (r *Container) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/mediastore/aws-mediastore-container_corsrule.go b/cloudformation/mediastore/aws-mediastore-container_corsrule.go index 3bfa37ea4f..20a8cf5b30 100644 --- a/cloudformation/mediastore/aws-mediastore-container_corsrule.go +++ b/cloudformation/mediastore/aws-mediastore-container_corsrule.go @@ -41,6 +41,9 @@ type Container_CorsRule struct { // 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 diff --git a/cloudformation/msk/aws-msk-cluster.go b/cloudformation/msk/aws-msk-cluster.go index 2137a2547b..dc8ba78671 100644 --- a/cloudformation/msk/aws-msk-cluster.go +++ b/cloudformation/msk/aws-msk-cluster.go @@ -52,6 +52,11 @@ type Cluster struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-msk-cluster.html#cfn-msk-cluster-numberofbrokernodes NumberOfBrokerNodes int `json:"NumberOfBrokerNodes"` + // OpenMonitoring AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-msk-cluster.html#cfn-msk-cluster-openmonitoring + OpenMonitoring *Cluster_OpenMonitoring `json:"OpenMonitoring,omitempty"` + // Tags AWS CloudFormation Property // Required: false // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-msk-cluster.html#cfn-msk-cluster-tags @@ -65,6 +70,9 @@ type Cluster struct { // 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 @@ -82,12 +90,14 @@ func (r Cluster) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -101,6 +111,7 @@ func (r *Cluster) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -124,5 +135,8 @@ func (r *Cluster) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/msk/aws-msk-cluster_brokernodegroupinfo.go b/cloudformation/msk/aws-msk-cluster_brokernodegroupinfo.go index 59a60515a4..8822b14b6e 100644 --- a/cloudformation/msk/aws-msk-cluster_brokernodegroupinfo.go +++ b/cloudformation/msk/aws-msk-cluster_brokernodegroupinfo.go @@ -41,6 +41,9 @@ type Cluster_BrokerNodeGroupInfo struct { // 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 diff --git a/cloudformation/msk/aws-msk-cluster_clientauthentication.go b/cloudformation/msk/aws-msk-cluster_clientauthentication.go index 5c3643d945..54df6d4f5b 100644 --- a/cloudformation/msk/aws-msk-cluster_clientauthentication.go +++ b/cloudformation/msk/aws-msk-cluster_clientauthentication.go @@ -21,6 +21,9 @@ type Cluster_ClientAuthentication struct { // 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 diff --git a/cloudformation/msk/aws-msk-cluster_configurationinfo.go b/cloudformation/msk/aws-msk-cluster_configurationinfo.go index 2b76f9d68a..ad31cd0ce8 100644 --- a/cloudformation/msk/aws-msk-cluster_configurationinfo.go +++ b/cloudformation/msk/aws-msk-cluster_configurationinfo.go @@ -26,6 +26,9 @@ type Cluster_ConfigurationInfo struct { // 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 diff --git a/cloudformation/msk/aws-msk-cluster_ebsstorageinfo.go b/cloudformation/msk/aws-msk-cluster_ebsstorageinfo.go index bef0988dfa..0dd39cdda2 100644 --- a/cloudformation/msk/aws-msk-cluster_ebsstorageinfo.go +++ b/cloudformation/msk/aws-msk-cluster_ebsstorageinfo.go @@ -21,6 +21,9 @@ type Cluster_EBSStorageInfo struct { // 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 diff --git a/cloudformation/msk/aws-msk-cluster_encryptionatrest.go b/cloudformation/msk/aws-msk-cluster_encryptionatrest.go index b08edc099d..242f9aab15 100644 --- a/cloudformation/msk/aws-msk-cluster_encryptionatrest.go +++ b/cloudformation/msk/aws-msk-cluster_encryptionatrest.go @@ -21,6 +21,9 @@ type Cluster_EncryptionAtRest struct { // 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 diff --git a/cloudformation/msk/aws-msk-cluster_encryptioninfo.go b/cloudformation/msk/aws-msk-cluster_encryptioninfo.go index c2e143941f..38c2e754bf 100644 --- a/cloudformation/msk/aws-msk-cluster_encryptioninfo.go +++ b/cloudformation/msk/aws-msk-cluster_encryptioninfo.go @@ -26,6 +26,9 @@ type Cluster_EncryptionInfo struct { // 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 diff --git a/cloudformation/msk/aws-msk-cluster_encryptionintransit.go b/cloudformation/msk/aws-msk-cluster_encryptionintransit.go index 0e31d2b934..1b5d30721f 100644 --- a/cloudformation/msk/aws-msk-cluster_encryptionintransit.go +++ b/cloudformation/msk/aws-msk-cluster_encryptionintransit.go @@ -26,6 +26,9 @@ type Cluster_EncryptionInTransit struct { // 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 diff --git a/cloudformation/msk/aws-msk-cluster_jmxexporter.go b/cloudformation/msk/aws-msk-cluster_jmxexporter.go new file mode 100644 index 0000000000..501e90ae37 --- /dev/null +++ b/cloudformation/msk/aws-msk-cluster_jmxexporter.go @@ -0,0 +1,32 @@ +package msk + +import ( + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// Cluster_JmxExporter AWS CloudFormation Resource (AWS::MSK::Cluster.JmxExporter) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-cluster-jmxexporter.html +type Cluster_JmxExporter struct { + + // EnabledInBroker AWS CloudFormation Property + // Required: true + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-cluster-jmxexporter.html#cfn-msk-cluster-jmxexporter-enabledinbroker + EnabledInBroker bool `json:"EnabledInBroker"` + + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `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 *Cluster_JmxExporter) AWSCloudFormationType() string { + return "AWS::MSK::Cluster.JmxExporter" +} diff --git a/cloudformation/msk/aws-msk-cluster_nodeexporter.go b/cloudformation/msk/aws-msk-cluster_nodeexporter.go new file mode 100644 index 0000000000..8b4cdbf84a --- /dev/null +++ b/cloudformation/msk/aws-msk-cluster_nodeexporter.go @@ -0,0 +1,32 @@ +package msk + +import ( + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// Cluster_NodeExporter AWS CloudFormation Resource (AWS::MSK::Cluster.NodeExporter) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-cluster-nodeexporter.html +type Cluster_NodeExporter struct { + + // EnabledInBroker AWS CloudFormation Property + // Required: true + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-cluster-nodeexporter.html#cfn-msk-cluster-nodeexporter-enabledinbroker + EnabledInBroker bool `json:"EnabledInBroker"` + + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `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 *Cluster_NodeExporter) AWSCloudFormationType() string { + return "AWS::MSK::Cluster.NodeExporter" +} diff --git a/cloudformation/msk/aws-msk-cluster_openmonitoring.go b/cloudformation/msk/aws-msk-cluster_openmonitoring.go new file mode 100644 index 0000000000..00f44e0209 --- /dev/null +++ b/cloudformation/msk/aws-msk-cluster_openmonitoring.go @@ -0,0 +1,32 @@ +package msk + +import ( + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// Cluster_OpenMonitoring AWS CloudFormation Resource (AWS::MSK::Cluster.OpenMonitoring) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-cluster-openmonitoring.html +type Cluster_OpenMonitoring struct { + + // Prometheus AWS CloudFormation Property + // Required: true + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-cluster-openmonitoring.html#cfn-msk-cluster-openmonitoring-prometheus + Prometheus *Cluster_Prometheus `json:"Prometheus,omitempty"` + + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `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 *Cluster_OpenMonitoring) AWSCloudFormationType() string { + return "AWS::MSK::Cluster.OpenMonitoring" +} diff --git a/cloudformation/msk/aws-msk-cluster_prometheus.go b/cloudformation/msk/aws-msk-cluster_prometheus.go new file mode 100644 index 0000000000..e4ae6aaf86 --- /dev/null +++ b/cloudformation/msk/aws-msk-cluster_prometheus.go @@ -0,0 +1,37 @@ +package msk + +import ( + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// Cluster_Prometheus AWS CloudFormation Resource (AWS::MSK::Cluster.Prometheus) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-cluster-prometheus.html +type Cluster_Prometheus struct { + + // JmxExporter AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-cluster-prometheus.html#cfn-msk-cluster-prometheus-jmxexporter + JmxExporter *Cluster_JmxExporter `json:"JmxExporter,omitempty"` + + // NodeExporter AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-cluster-prometheus.html#cfn-msk-cluster-prometheus-nodeexporter + NodeExporter *Cluster_NodeExporter `json:"NodeExporter,omitempty"` + + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `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 *Cluster_Prometheus) AWSCloudFormationType() string { + return "AWS::MSK::Cluster.Prometheus" +} diff --git a/cloudformation/msk/aws-msk-cluster_storageinfo.go b/cloudformation/msk/aws-msk-cluster_storageinfo.go index 63bcd1b181..d65e08b3b3 100644 --- a/cloudformation/msk/aws-msk-cluster_storageinfo.go +++ b/cloudformation/msk/aws-msk-cluster_storageinfo.go @@ -21,6 +21,9 @@ type Cluster_StorageInfo struct { // 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 diff --git a/cloudformation/msk/aws-msk-cluster_tls.go b/cloudformation/msk/aws-msk-cluster_tls.go index 1d4d2addeb..9a018a79e0 100644 --- a/cloudformation/msk/aws-msk-cluster_tls.go +++ b/cloudformation/msk/aws-msk-cluster_tls.go @@ -21,6 +21,9 @@ type Cluster_Tls struct { // 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 diff --git a/cloudformation/neptune/aws-neptune-dbcluster.go b/cloudformation/neptune/aws-neptune-dbcluster.go index 07987cef31..dc53fe9d5c 100644 --- a/cloudformation/neptune/aws-neptune-dbcluster.go +++ b/cloudformation/neptune/aws-neptune-dbcluster.go @@ -96,6 +96,9 @@ type DBCluster struct { // 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 @@ -113,12 +116,14 @@ func (r DBCluster) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -132,6 +137,7 @@ func (r *DBCluster) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -155,5 +161,8 @@ func (r *DBCluster) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/neptune/aws-neptune-dbclusterparametergroup.go b/cloudformation/neptune/aws-neptune-dbclusterparametergroup.go index 295e60d8f6..ac829e3836 100644 --- a/cloudformation/neptune/aws-neptune-dbclusterparametergroup.go +++ b/cloudformation/neptune/aws-neptune-dbclusterparametergroup.go @@ -46,6 +46,9 @@ type DBClusterParameterGroup struct { // 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 @@ -63,12 +66,14 @@ func (r DBClusterParameterGroup) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -82,6 +87,7 @@ func (r *DBClusterParameterGroup) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -105,5 +111,8 @@ func (r *DBClusterParameterGroup) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/neptune/aws-neptune-dbinstance.go b/cloudformation/neptune/aws-neptune-dbinstance.go index 039cd35b82..e259436957 100644 --- a/cloudformation/neptune/aws-neptune-dbinstance.go +++ b/cloudformation/neptune/aws-neptune-dbinstance.go @@ -76,6 +76,9 @@ type DBInstance struct { // 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 @@ -93,12 +96,14 @@ func (r DBInstance) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -112,6 +117,7 @@ func (r *DBInstance) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -135,5 +141,8 @@ func (r *DBInstance) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/neptune/aws-neptune-dbparametergroup.go b/cloudformation/neptune/aws-neptune-dbparametergroup.go index 23c3e5f063..e1135cc7bd 100644 --- a/cloudformation/neptune/aws-neptune-dbparametergroup.go +++ b/cloudformation/neptune/aws-neptune-dbparametergroup.go @@ -46,6 +46,9 @@ type DBParameterGroup struct { // 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 @@ -63,12 +66,14 @@ func (r DBParameterGroup) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -82,6 +87,7 @@ func (r *DBParameterGroup) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -105,5 +111,8 @@ func (r *DBParameterGroup) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/neptune/aws-neptune-dbsubnetgroup.go b/cloudformation/neptune/aws-neptune-dbsubnetgroup.go index 3f0b63355f..35f27d42f8 100644 --- a/cloudformation/neptune/aws-neptune-dbsubnetgroup.go +++ b/cloudformation/neptune/aws-neptune-dbsubnetgroup.go @@ -41,6 +41,9 @@ type DBSubnetGroup struct { // 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 @@ -58,12 +61,14 @@ func (r DBSubnetGroup) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -77,6 +82,7 @@ func (r *DBSubnetGroup) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -100,5 +106,8 @@ func (r *DBSubnetGroup) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/opsworks/aws-opsworks-app.go b/cloudformation/opsworks/aws-opsworks-app.go index 2afa96bbcc..7f0648714e 100644 --- a/cloudformation/opsworks/aws-opsworks-app.go +++ b/cloudformation/opsworks/aws-opsworks-app.go @@ -80,6 +80,9 @@ type App struct { // 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 @@ -97,12 +100,14 @@ func (r App) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -116,6 +121,7 @@ func (r *App) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -139,5 +145,8 @@ func (r *App) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/opsworks/aws-opsworks-app_datasource.go b/cloudformation/opsworks/aws-opsworks-app_datasource.go index da62430894..3151972fa1 100644 --- a/cloudformation/opsworks/aws-opsworks-app_datasource.go +++ b/cloudformation/opsworks/aws-opsworks-app_datasource.go @@ -31,6 +31,9 @@ type App_DataSource struct { // 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 diff --git a/cloudformation/opsworks/aws-opsworks-app_environmentvariable.go b/cloudformation/opsworks/aws-opsworks-app_environmentvariable.go index db81a9d37b..ec9b9efa02 100644 --- a/cloudformation/opsworks/aws-opsworks-app_environmentvariable.go +++ b/cloudformation/opsworks/aws-opsworks-app_environmentvariable.go @@ -31,6 +31,9 @@ type App_EnvironmentVariable struct { // 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 diff --git a/cloudformation/opsworks/aws-opsworks-app_source.go b/cloudformation/opsworks/aws-opsworks-app_source.go index 0df7c4d1d6..65fa73f75a 100644 --- a/cloudformation/opsworks/aws-opsworks-app_source.go +++ b/cloudformation/opsworks/aws-opsworks-app_source.go @@ -46,6 +46,9 @@ type App_Source struct { // 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 diff --git a/cloudformation/opsworks/aws-opsworks-app_sslconfiguration.go b/cloudformation/opsworks/aws-opsworks-app_sslconfiguration.go index 48768e4cd6..52eafcb4b8 100644 --- a/cloudformation/opsworks/aws-opsworks-app_sslconfiguration.go +++ b/cloudformation/opsworks/aws-opsworks-app_sslconfiguration.go @@ -31,6 +31,9 @@ type App_SslConfiguration struct { // 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 diff --git a/cloudformation/opsworks/aws-opsworks-elasticloadbalancerattachment.go b/cloudformation/opsworks/aws-opsworks-elasticloadbalancerattachment.go index cb991e9816..7c025b9891 100644 --- a/cloudformation/opsworks/aws-opsworks-elasticloadbalancerattachment.go +++ b/cloudformation/opsworks/aws-opsworks-elasticloadbalancerattachment.go @@ -30,6 +30,9 @@ type ElasticLoadBalancerAttachment struct { // 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 @@ -47,12 +50,14 @@ func (r ElasticLoadBalancerAttachment) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -66,6 +71,7 @@ func (r *ElasticLoadBalancerAttachment) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -89,5 +95,8 @@ func (r *ElasticLoadBalancerAttachment) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/opsworks/aws-opsworks-instance.go b/cloudformation/opsworks/aws-opsworks-instance.go index 0907907817..bd1c239a42 100644 --- a/cloudformation/opsworks/aws-opsworks-instance.go +++ b/cloudformation/opsworks/aws-opsworks-instance.go @@ -125,6 +125,9 @@ type Instance struct { // 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 @@ -142,12 +145,14 @@ func (r Instance) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -161,6 +166,7 @@ func (r *Instance) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -184,5 +190,8 @@ func (r *Instance) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/opsworks/aws-opsworks-instance_blockdevicemapping.go b/cloudformation/opsworks/aws-opsworks-instance_blockdevicemapping.go index f94954a718..bbd1b84eeb 100644 --- a/cloudformation/opsworks/aws-opsworks-instance_blockdevicemapping.go +++ b/cloudformation/opsworks/aws-opsworks-instance_blockdevicemapping.go @@ -36,6 +36,9 @@ type Instance_BlockDeviceMapping struct { // 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 diff --git a/cloudformation/opsworks/aws-opsworks-instance_ebsblockdevice.go b/cloudformation/opsworks/aws-opsworks-instance_ebsblockdevice.go index dca840c987..aae7996665 100644 --- a/cloudformation/opsworks/aws-opsworks-instance_ebsblockdevice.go +++ b/cloudformation/opsworks/aws-opsworks-instance_ebsblockdevice.go @@ -41,6 +41,9 @@ type Instance_EbsBlockDevice struct { // 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 diff --git a/cloudformation/opsworks/aws-opsworks-instance_timebasedautoscaling.go b/cloudformation/opsworks/aws-opsworks-instance_timebasedautoscaling.go index f6da02fb80..946cf98ccd 100644 --- a/cloudformation/opsworks/aws-opsworks-instance_timebasedautoscaling.go +++ b/cloudformation/opsworks/aws-opsworks-instance_timebasedautoscaling.go @@ -51,6 +51,9 @@ type Instance_TimeBasedAutoScaling struct { // 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 diff --git a/cloudformation/opsworks/aws-opsworks-layer.go b/cloudformation/opsworks/aws-opsworks-layer.go index c772d1979a..64b54873e8 100644 --- a/cloudformation/opsworks/aws-opsworks-layer.go +++ b/cloudformation/opsworks/aws-opsworks-layer.go @@ -116,6 +116,9 @@ type Layer struct { // 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 @@ -133,12 +136,14 @@ func (r Layer) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -152,6 +157,7 @@ func (r *Layer) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -175,5 +181,8 @@ func (r *Layer) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/opsworks/aws-opsworks-layer_autoscalingthresholds.go b/cloudformation/opsworks/aws-opsworks-layer_autoscalingthresholds.go index 3540cf0bb9..93b7259c95 100644 --- a/cloudformation/opsworks/aws-opsworks-layer_autoscalingthresholds.go +++ b/cloudformation/opsworks/aws-opsworks-layer_autoscalingthresholds.go @@ -46,6 +46,9 @@ type Layer_AutoScalingThresholds struct { // 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 diff --git a/cloudformation/opsworks/aws-opsworks-layer_lifecycleeventconfiguration.go b/cloudformation/opsworks/aws-opsworks-layer_lifecycleeventconfiguration.go index 175d5bdb75..c68b69b268 100644 --- a/cloudformation/opsworks/aws-opsworks-layer_lifecycleeventconfiguration.go +++ b/cloudformation/opsworks/aws-opsworks-layer_lifecycleeventconfiguration.go @@ -21,6 +21,9 @@ type Layer_LifecycleEventConfiguration struct { // 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 diff --git a/cloudformation/opsworks/aws-opsworks-layer_loadbasedautoscaling.go b/cloudformation/opsworks/aws-opsworks-layer_loadbasedautoscaling.go index 333838d968..e191ba8382 100644 --- a/cloudformation/opsworks/aws-opsworks-layer_loadbasedautoscaling.go +++ b/cloudformation/opsworks/aws-opsworks-layer_loadbasedautoscaling.go @@ -31,6 +31,9 @@ type Layer_LoadBasedAutoScaling struct { // 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 diff --git a/cloudformation/opsworks/aws-opsworks-layer_recipes.go b/cloudformation/opsworks/aws-opsworks-layer_recipes.go index 32070b990a..0d0bb6e80c 100644 --- a/cloudformation/opsworks/aws-opsworks-layer_recipes.go +++ b/cloudformation/opsworks/aws-opsworks-layer_recipes.go @@ -41,6 +41,9 @@ type Layer_Recipes struct { // 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 diff --git a/cloudformation/opsworks/aws-opsworks-layer_shutdowneventconfiguration.go b/cloudformation/opsworks/aws-opsworks-layer_shutdowneventconfiguration.go index ef14f14c83..83534c4016 100644 --- a/cloudformation/opsworks/aws-opsworks-layer_shutdowneventconfiguration.go +++ b/cloudformation/opsworks/aws-opsworks-layer_shutdowneventconfiguration.go @@ -26,6 +26,9 @@ type Layer_ShutdownEventConfiguration struct { // 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 diff --git a/cloudformation/opsworks/aws-opsworks-layer_volumeconfiguration.go b/cloudformation/opsworks/aws-opsworks-layer_volumeconfiguration.go index 6c74105551..22ae707fb6 100644 --- a/cloudformation/opsworks/aws-opsworks-layer_volumeconfiguration.go +++ b/cloudformation/opsworks/aws-opsworks-layer_volumeconfiguration.go @@ -51,6 +51,9 @@ type Layer_VolumeConfiguration struct { // 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 diff --git a/cloudformation/opsworks/aws-opsworks-stack.go b/cloudformation/opsworks/aws-opsworks-stack.go index 1daf7ae9ac..88fe5a9a79 100644 --- a/cloudformation/opsworks/aws-opsworks-stack.go +++ b/cloudformation/opsworks/aws-opsworks-stack.go @@ -146,6 +146,9 @@ type Stack struct { // 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 @@ -163,12 +166,14 @@ func (r Stack) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -182,6 +187,7 @@ func (r *Stack) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -205,5 +211,8 @@ func (r *Stack) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/opsworks/aws-opsworks-stack_chefconfiguration.go b/cloudformation/opsworks/aws-opsworks-stack_chefconfiguration.go index 06fed0d290..c1ca7b181b 100644 --- a/cloudformation/opsworks/aws-opsworks-stack_chefconfiguration.go +++ b/cloudformation/opsworks/aws-opsworks-stack_chefconfiguration.go @@ -26,6 +26,9 @@ type Stack_ChefConfiguration struct { // 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 diff --git a/cloudformation/opsworks/aws-opsworks-stack_elasticip.go b/cloudformation/opsworks/aws-opsworks-stack_elasticip.go index cc3a51dede..29648a1996 100644 --- a/cloudformation/opsworks/aws-opsworks-stack_elasticip.go +++ b/cloudformation/opsworks/aws-opsworks-stack_elasticip.go @@ -26,6 +26,9 @@ type Stack_ElasticIp struct { // 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 diff --git a/cloudformation/opsworks/aws-opsworks-stack_rdsdbinstance.go b/cloudformation/opsworks/aws-opsworks-stack_rdsdbinstance.go index 93b77f527d..4720ff20bf 100644 --- a/cloudformation/opsworks/aws-opsworks-stack_rdsdbinstance.go +++ b/cloudformation/opsworks/aws-opsworks-stack_rdsdbinstance.go @@ -31,6 +31,9 @@ type Stack_RdsDbInstance struct { // 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 diff --git a/cloudformation/opsworks/aws-opsworks-stack_source.go b/cloudformation/opsworks/aws-opsworks-stack_source.go index 36ee28e17d..0601f2ad7f 100644 --- a/cloudformation/opsworks/aws-opsworks-stack_source.go +++ b/cloudformation/opsworks/aws-opsworks-stack_source.go @@ -46,6 +46,9 @@ type Stack_Source struct { // 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 diff --git a/cloudformation/opsworks/aws-opsworks-stack_stackconfigurationmanager.go b/cloudformation/opsworks/aws-opsworks-stack_stackconfigurationmanager.go index fd6da49ab9..3b8c09b290 100644 --- a/cloudformation/opsworks/aws-opsworks-stack_stackconfigurationmanager.go +++ b/cloudformation/opsworks/aws-opsworks-stack_stackconfigurationmanager.go @@ -26,6 +26,9 @@ type Stack_StackConfigurationManager struct { // 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 diff --git a/cloudformation/opsworks/aws-opsworks-userprofile.go b/cloudformation/opsworks/aws-opsworks-userprofile.go index f58581483e..57b2977bd2 100644 --- a/cloudformation/opsworks/aws-opsworks-userprofile.go +++ b/cloudformation/opsworks/aws-opsworks-userprofile.go @@ -40,6 +40,9 @@ type UserProfile struct { // 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 @@ -57,12 +60,14 @@ func (r UserProfile) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -76,6 +81,7 @@ func (r *UserProfile) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -99,5 +105,8 @@ func (r *UserProfile) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/opsworks/aws-opsworks-volume.go b/cloudformation/opsworks/aws-opsworks-volume.go index 90147adf2f..8f47d434ea 100644 --- a/cloudformation/opsworks/aws-opsworks-volume.go +++ b/cloudformation/opsworks/aws-opsworks-volume.go @@ -40,6 +40,9 @@ type Volume struct { // 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 @@ -57,12 +60,14 @@ func (r Volume) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -76,6 +81,7 @@ func (r *Volume) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -99,5 +105,8 @@ func (r *Volume) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/opsworkscm/aws-opsworkscm-server.go b/cloudformation/opsworkscm/aws-opsworkscm-server.go index 4ea56942f2..ca2756abde 100644 --- a/cloudformation/opsworkscm/aws-opsworkscm-server.go +++ b/cloudformation/opsworkscm/aws-opsworkscm-server.go @@ -120,6 +120,9 @@ type Server struct { // 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 @@ -137,12 +140,14 @@ func (r Server) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -156,6 +161,7 @@ func (r *Server) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -179,5 +185,8 @@ func (r *Server) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/opsworkscm/aws-opsworkscm-server_engineattribute.go b/cloudformation/opsworkscm/aws-opsworkscm-server_engineattribute.go index 562b39f03e..721a6446aa 100644 --- a/cloudformation/opsworkscm/aws-opsworkscm-server_engineattribute.go +++ b/cloudformation/opsworkscm/aws-opsworkscm-server_engineattribute.go @@ -26,6 +26,9 @@ type Server_EngineAttribute struct { // 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 diff --git a/cloudformation/pinpoint/aws-pinpoint-admchannel.go b/cloudformation/pinpoint/aws-pinpoint-admchannel.go index 0b83832f05..c89382c09a 100644 --- a/cloudformation/pinpoint/aws-pinpoint-admchannel.go +++ b/cloudformation/pinpoint/aws-pinpoint-admchannel.go @@ -40,6 +40,9 @@ type ADMChannel struct { // 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 @@ -57,12 +60,14 @@ func (r ADMChannel) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -76,6 +81,7 @@ func (r *ADMChannel) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -99,5 +105,8 @@ func (r *ADMChannel) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/pinpoint/aws-pinpoint-apnschannel.go b/cloudformation/pinpoint/aws-pinpoint-apnschannel.go index a84ed2d717..bd851c34c2 100644 --- a/cloudformation/pinpoint/aws-pinpoint-apnschannel.go +++ b/cloudformation/pinpoint/aws-pinpoint-apnschannel.go @@ -65,6 +65,9 @@ type APNSChannel struct { // 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 @@ -82,12 +85,14 @@ func (r APNSChannel) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -101,6 +106,7 @@ func (r *APNSChannel) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -124,5 +130,8 @@ func (r *APNSChannel) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/pinpoint/aws-pinpoint-apnssandboxchannel.go b/cloudformation/pinpoint/aws-pinpoint-apnssandboxchannel.go index 6cdde7ab14..892525d4e9 100644 --- a/cloudformation/pinpoint/aws-pinpoint-apnssandboxchannel.go +++ b/cloudformation/pinpoint/aws-pinpoint-apnssandboxchannel.go @@ -65,6 +65,9 @@ type APNSSandboxChannel struct { // 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 @@ -82,12 +85,14 @@ func (r APNSSandboxChannel) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -101,6 +106,7 @@ func (r *APNSSandboxChannel) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -124,5 +130,8 @@ func (r *APNSSandboxChannel) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/pinpoint/aws-pinpoint-apnsvoipchannel.go b/cloudformation/pinpoint/aws-pinpoint-apnsvoipchannel.go index 5618a080ea..63346e2536 100644 --- a/cloudformation/pinpoint/aws-pinpoint-apnsvoipchannel.go +++ b/cloudformation/pinpoint/aws-pinpoint-apnsvoipchannel.go @@ -65,6 +65,9 @@ type APNSVoipChannel struct { // 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 @@ -82,12 +85,14 @@ func (r APNSVoipChannel) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -101,6 +106,7 @@ func (r *APNSVoipChannel) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -124,5 +130,8 @@ func (r *APNSVoipChannel) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/pinpoint/aws-pinpoint-apnsvoipsandboxchannel.go b/cloudformation/pinpoint/aws-pinpoint-apnsvoipsandboxchannel.go index 87862b81bd..ecc69da14b 100644 --- a/cloudformation/pinpoint/aws-pinpoint-apnsvoipsandboxchannel.go +++ b/cloudformation/pinpoint/aws-pinpoint-apnsvoipsandboxchannel.go @@ -65,6 +65,9 @@ type APNSVoipSandboxChannel struct { // 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 @@ -82,12 +85,14 @@ func (r APNSVoipSandboxChannel) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -101,6 +106,7 @@ func (r *APNSVoipSandboxChannel) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -124,5 +130,8 @@ func (r *APNSVoipSandboxChannel) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/pinpoint/aws-pinpoint-app.go b/cloudformation/pinpoint/aws-pinpoint-app.go index 278077e899..422cc61566 100644 --- a/cloudformation/pinpoint/aws-pinpoint-app.go +++ b/cloudformation/pinpoint/aws-pinpoint-app.go @@ -30,6 +30,9 @@ type App struct { // 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 @@ -47,12 +50,14 @@ func (r App) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -66,6 +71,7 @@ func (r *App) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -89,5 +95,8 @@ func (r *App) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/pinpoint/aws-pinpoint-applicationsettings.go b/cloudformation/pinpoint/aws-pinpoint-applicationsettings.go index f0605aac1b..a51342c1fd 100644 --- a/cloudformation/pinpoint/aws-pinpoint-applicationsettings.go +++ b/cloudformation/pinpoint/aws-pinpoint-applicationsettings.go @@ -45,6 +45,9 @@ type ApplicationSettings struct { // 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 @@ -62,12 +65,14 @@ func (r ApplicationSettings) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -81,6 +86,7 @@ func (r *ApplicationSettings) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -104,5 +110,8 @@ func (r *ApplicationSettings) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/pinpoint/aws-pinpoint-applicationsettings_campaignhook.go b/cloudformation/pinpoint/aws-pinpoint-applicationsettings_campaignhook.go index 9237290ccc..03690c3f00 100644 --- a/cloudformation/pinpoint/aws-pinpoint-applicationsettings_campaignhook.go +++ b/cloudformation/pinpoint/aws-pinpoint-applicationsettings_campaignhook.go @@ -31,6 +31,9 @@ type ApplicationSettings_CampaignHook struct { // 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 diff --git a/cloudformation/pinpoint/aws-pinpoint-applicationsettings_limits.go b/cloudformation/pinpoint/aws-pinpoint-applicationsettings_limits.go index f5025ebf8f..38e18d8ebd 100644 --- a/cloudformation/pinpoint/aws-pinpoint-applicationsettings_limits.go +++ b/cloudformation/pinpoint/aws-pinpoint-applicationsettings_limits.go @@ -36,6 +36,9 @@ type ApplicationSettings_Limits struct { // 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 diff --git a/cloudformation/pinpoint/aws-pinpoint-applicationsettings_quiettime.go b/cloudformation/pinpoint/aws-pinpoint-applicationsettings_quiettime.go index 2de314398d..e98a42dccc 100644 --- a/cloudformation/pinpoint/aws-pinpoint-applicationsettings_quiettime.go +++ b/cloudformation/pinpoint/aws-pinpoint-applicationsettings_quiettime.go @@ -26,6 +26,9 @@ type ApplicationSettings_QuietTime struct { // 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 diff --git a/cloudformation/pinpoint/aws-pinpoint-baiduchannel.go b/cloudformation/pinpoint/aws-pinpoint-baiduchannel.go index c2c228f247..1f107d45cc 100644 --- a/cloudformation/pinpoint/aws-pinpoint-baiduchannel.go +++ b/cloudformation/pinpoint/aws-pinpoint-baiduchannel.go @@ -40,6 +40,9 @@ type BaiduChannel struct { // 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 @@ -57,12 +60,14 @@ func (r BaiduChannel) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -76,6 +81,7 @@ func (r *BaiduChannel) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -99,5 +105,8 @@ func (r *BaiduChannel) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/pinpoint/aws-pinpoint-campaign.go b/cloudformation/pinpoint/aws-pinpoint-campaign.go index 0b3a20f29b..83cdcd3188 100644 --- a/cloudformation/pinpoint/aws-pinpoint-campaign.go +++ b/cloudformation/pinpoint/aws-pinpoint-campaign.go @@ -95,6 +95,9 @@ type Campaign struct { // 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 @@ -112,12 +115,14 @@ func (r Campaign) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -131,6 +136,7 @@ func (r *Campaign) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -154,5 +160,8 @@ func (r *Campaign) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/pinpoint/aws-pinpoint-campaign_attributedimension.go b/cloudformation/pinpoint/aws-pinpoint-campaign_attributedimension.go index b5226eff60..18e6f11186 100644 --- a/cloudformation/pinpoint/aws-pinpoint-campaign_attributedimension.go +++ b/cloudformation/pinpoint/aws-pinpoint-campaign_attributedimension.go @@ -26,6 +26,9 @@ type Campaign_AttributeDimension struct { // 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 diff --git a/cloudformation/pinpoint/aws-pinpoint-campaign_campaignemailmessage.go b/cloudformation/pinpoint/aws-pinpoint-campaign_campaignemailmessage.go index f53aeb1580..c3b1081a51 100644 --- a/cloudformation/pinpoint/aws-pinpoint-campaign_campaignemailmessage.go +++ b/cloudformation/pinpoint/aws-pinpoint-campaign_campaignemailmessage.go @@ -36,6 +36,9 @@ type Campaign_CampaignEmailMessage struct { // 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 diff --git a/cloudformation/pinpoint/aws-pinpoint-campaign_campaigneventfilter.go b/cloudformation/pinpoint/aws-pinpoint-campaign_campaigneventfilter.go index 487f5653b8..6b1909cc20 100644 --- a/cloudformation/pinpoint/aws-pinpoint-campaign_campaigneventfilter.go +++ b/cloudformation/pinpoint/aws-pinpoint-campaign_campaigneventfilter.go @@ -26,6 +26,9 @@ type Campaign_CampaignEventFilter struct { // 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 diff --git a/cloudformation/pinpoint/aws-pinpoint-campaign_campaignhook.go b/cloudformation/pinpoint/aws-pinpoint-campaign_campaignhook.go index 31510bcb6f..b499231f2b 100644 --- a/cloudformation/pinpoint/aws-pinpoint-campaign_campaignhook.go +++ b/cloudformation/pinpoint/aws-pinpoint-campaign_campaignhook.go @@ -31,6 +31,9 @@ type Campaign_CampaignHook struct { // 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 diff --git a/cloudformation/pinpoint/aws-pinpoint-campaign_campaignsmsmessage.go b/cloudformation/pinpoint/aws-pinpoint-campaign_campaignsmsmessage.go index 6da3a4a66e..1caa9540ff 100644 --- a/cloudformation/pinpoint/aws-pinpoint-campaign_campaignsmsmessage.go +++ b/cloudformation/pinpoint/aws-pinpoint-campaign_campaignsmsmessage.go @@ -31,6 +31,9 @@ type Campaign_CampaignSmsMessage struct { // 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 diff --git a/cloudformation/pinpoint/aws-pinpoint-campaign_eventdimensions.go b/cloudformation/pinpoint/aws-pinpoint-campaign_eventdimensions.go index f4995fddea..abc2e433bc 100644 --- a/cloudformation/pinpoint/aws-pinpoint-campaign_eventdimensions.go +++ b/cloudformation/pinpoint/aws-pinpoint-campaign_eventdimensions.go @@ -31,6 +31,9 @@ type Campaign_EventDimensions struct { // 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 diff --git a/cloudformation/pinpoint/aws-pinpoint-campaign_limits.go b/cloudformation/pinpoint/aws-pinpoint-campaign_limits.go index 082fcc2051..0026798730 100644 --- a/cloudformation/pinpoint/aws-pinpoint-campaign_limits.go +++ b/cloudformation/pinpoint/aws-pinpoint-campaign_limits.go @@ -36,6 +36,9 @@ type Campaign_Limits struct { // 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 diff --git a/cloudformation/pinpoint/aws-pinpoint-campaign_message.go b/cloudformation/pinpoint/aws-pinpoint-campaign_message.go index c290fb11f0..67a8572cef 100644 --- a/cloudformation/pinpoint/aws-pinpoint-campaign_message.go +++ b/cloudformation/pinpoint/aws-pinpoint-campaign_message.go @@ -76,6 +76,9 @@ type Campaign_Message struct { // 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 diff --git a/cloudformation/pinpoint/aws-pinpoint-campaign_messageconfiguration.go b/cloudformation/pinpoint/aws-pinpoint-campaign_messageconfiguration.go index c30525e99d..0e6c43e0b5 100644 --- a/cloudformation/pinpoint/aws-pinpoint-campaign_messageconfiguration.go +++ b/cloudformation/pinpoint/aws-pinpoint-campaign_messageconfiguration.go @@ -51,6 +51,9 @@ type Campaign_MessageConfiguration struct { // 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 diff --git a/cloudformation/pinpoint/aws-pinpoint-campaign_metricdimension.go b/cloudformation/pinpoint/aws-pinpoint-campaign_metricdimension.go index 0e2c322769..bf6da21b04 100644 --- a/cloudformation/pinpoint/aws-pinpoint-campaign_metricdimension.go +++ b/cloudformation/pinpoint/aws-pinpoint-campaign_metricdimension.go @@ -26,6 +26,9 @@ type Campaign_MetricDimension struct { // 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 diff --git a/cloudformation/pinpoint/aws-pinpoint-campaign_quiettime.go b/cloudformation/pinpoint/aws-pinpoint-campaign_quiettime.go index 650e5b346f..b69b9c563b 100644 --- a/cloudformation/pinpoint/aws-pinpoint-campaign_quiettime.go +++ b/cloudformation/pinpoint/aws-pinpoint-campaign_quiettime.go @@ -26,6 +26,9 @@ type Campaign_QuietTime struct { // 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 diff --git a/cloudformation/pinpoint/aws-pinpoint-campaign_schedule.go b/cloudformation/pinpoint/aws-pinpoint-campaign_schedule.go index ee391c9783..b90fcfef94 100644 --- a/cloudformation/pinpoint/aws-pinpoint-campaign_schedule.go +++ b/cloudformation/pinpoint/aws-pinpoint-campaign_schedule.go @@ -51,6 +51,9 @@ type Campaign_Schedule struct { // 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 diff --git a/cloudformation/pinpoint/aws-pinpoint-campaign_setdimension.go b/cloudformation/pinpoint/aws-pinpoint-campaign_setdimension.go index 68b13051cc..f18fd4d3fc 100644 --- a/cloudformation/pinpoint/aws-pinpoint-campaign_setdimension.go +++ b/cloudformation/pinpoint/aws-pinpoint-campaign_setdimension.go @@ -26,6 +26,9 @@ type Campaign_SetDimension struct { // 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 diff --git a/cloudformation/pinpoint/aws-pinpoint-campaign_writetreatmentresource.go b/cloudformation/pinpoint/aws-pinpoint-campaign_writetreatmentresource.go index a31737662b..2e1719e95d 100644 --- a/cloudformation/pinpoint/aws-pinpoint-campaign_writetreatmentresource.go +++ b/cloudformation/pinpoint/aws-pinpoint-campaign_writetreatmentresource.go @@ -41,6 +41,9 @@ type Campaign_WriteTreatmentResource struct { // 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 diff --git a/cloudformation/pinpoint/aws-pinpoint-emailchannel.go b/cloudformation/pinpoint/aws-pinpoint-emailchannel.go index c89b97fa19..046845d255 100644 --- a/cloudformation/pinpoint/aws-pinpoint-emailchannel.go +++ b/cloudformation/pinpoint/aws-pinpoint-emailchannel.go @@ -50,6 +50,9 @@ type EmailChannel struct { // 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 @@ -67,12 +70,14 @@ func (r EmailChannel) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -86,6 +91,7 @@ func (r *EmailChannel) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -109,5 +115,8 @@ func (r *EmailChannel) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/pinpoint/aws-pinpoint-emailtemplate.go b/cloudformation/pinpoint/aws-pinpoint-emailtemplate.go index e25f4f1d09..4d0213d1f5 100644 --- a/cloudformation/pinpoint/aws-pinpoint-emailtemplate.go +++ b/cloudformation/pinpoint/aws-pinpoint-emailtemplate.go @@ -12,6 +12,11 @@ import ( // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pinpoint-emailtemplate.html type EmailTemplate struct { + // DefaultSubstitutions AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pinpoint-emailtemplate.html#cfn-pinpoint-emailtemplate-defaultsubstitutions + DefaultSubstitutions string `json:"DefaultSubstitutions,omitempty"` + // HtmlPart AWS CloudFormation Property // Required: false // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pinpoint-emailtemplate.html#cfn-pinpoint-emailtemplate-htmlpart @@ -27,6 +32,11 @@ type EmailTemplate struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pinpoint-emailtemplate.html#cfn-pinpoint-emailtemplate-tags Tags interface{} `json:"Tags,omitempty"` + // TemplateDescription AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pinpoint-emailtemplate.html#cfn-pinpoint-emailtemplate-templatedescription + TemplateDescription string `json:"TemplateDescription,omitempty"` + // TemplateName AWS CloudFormation Property // Required: true // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pinpoint-emailtemplate.html#cfn-pinpoint-emailtemplate-templatename @@ -45,6 +55,9 @@ type EmailTemplate struct { // 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 @@ -62,12 +75,14 @@ func (r EmailTemplate) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -81,6 +96,7 @@ func (r *EmailTemplate) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -104,5 +120,8 @@ func (r *EmailTemplate) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/pinpoint/aws-pinpoint-eventstream.go b/cloudformation/pinpoint/aws-pinpoint-eventstream.go index be5c7e12be..9767d20371 100644 --- a/cloudformation/pinpoint/aws-pinpoint-eventstream.go +++ b/cloudformation/pinpoint/aws-pinpoint-eventstream.go @@ -35,6 +35,9 @@ type EventStream struct { // 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 @@ -52,12 +55,14 @@ func (r EventStream) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -71,6 +76,7 @@ func (r *EventStream) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -94,5 +100,8 @@ func (r *EventStream) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/pinpoint/aws-pinpoint-gcmchannel.go b/cloudformation/pinpoint/aws-pinpoint-gcmchannel.go index ed19335f0b..2658a59fcf 100644 --- a/cloudformation/pinpoint/aws-pinpoint-gcmchannel.go +++ b/cloudformation/pinpoint/aws-pinpoint-gcmchannel.go @@ -35,6 +35,9 @@ type GCMChannel struct { // 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 @@ -52,12 +55,14 @@ func (r GCMChannel) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -71,6 +76,7 @@ func (r *GCMChannel) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -94,5 +100,8 @@ func (r *GCMChannel) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/pinpoint/aws-pinpoint-pushtemplate.go b/cloudformation/pinpoint/aws-pinpoint-pushtemplate.go index 70ad0756cc..c1650e7f3a 100644 --- a/cloudformation/pinpoint/aws-pinpoint-pushtemplate.go +++ b/cloudformation/pinpoint/aws-pinpoint-pushtemplate.go @@ -32,6 +32,11 @@ type PushTemplate struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pinpoint-pushtemplate.html#cfn-pinpoint-pushtemplate-default Default *PushTemplate_DefaultPushNotificationTemplate `json:"Default,omitempty"` + // DefaultSubstitutions AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pinpoint-pushtemplate.html#cfn-pinpoint-pushtemplate-defaultsubstitutions + DefaultSubstitutions string `json:"DefaultSubstitutions,omitempty"` + // GCM AWS CloudFormation Property // Required: false // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pinpoint-pushtemplate.html#cfn-pinpoint-pushtemplate-gcm @@ -42,6 +47,11 @@ type PushTemplate struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pinpoint-pushtemplate.html#cfn-pinpoint-pushtemplate-tags Tags interface{} `json:"Tags,omitempty"` + // TemplateDescription AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pinpoint-pushtemplate.html#cfn-pinpoint-pushtemplate-templatedescription + TemplateDescription string `json:"TemplateDescription,omitempty"` + // TemplateName AWS CloudFormation Property // Required: true // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pinpoint-pushtemplate.html#cfn-pinpoint-pushtemplate-templatename @@ -55,6 +65,9 @@ type PushTemplate struct { // 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 @@ -72,12 +85,14 @@ func (r PushTemplate) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -91,6 +106,7 @@ func (r *PushTemplate) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -114,5 +130,8 @@ func (r *PushTemplate) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/pinpoint/aws-pinpoint-pushtemplate_androidpushnotificationtemplate.go b/cloudformation/pinpoint/aws-pinpoint-pushtemplate_androidpushnotificationtemplate.go index b91c48c5bc..6c5f4ebc28 100644 --- a/cloudformation/pinpoint/aws-pinpoint-pushtemplate_androidpushnotificationtemplate.go +++ b/cloudformation/pinpoint/aws-pinpoint-pushtemplate_androidpushnotificationtemplate.go @@ -56,6 +56,9 @@ type PushTemplate_AndroidPushNotificationTemplate struct { // 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 diff --git a/cloudformation/pinpoint/aws-pinpoint-pushtemplate_apnspushnotificationtemplate.go b/cloudformation/pinpoint/aws-pinpoint-pushtemplate_apnspushnotificationtemplate.go index 6456893cf4..fbeb556564 100644 --- a/cloudformation/pinpoint/aws-pinpoint-pushtemplate_apnspushnotificationtemplate.go +++ b/cloudformation/pinpoint/aws-pinpoint-pushtemplate_apnspushnotificationtemplate.go @@ -46,6 +46,9 @@ type PushTemplate_APNSPushNotificationTemplate struct { // 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 diff --git a/cloudformation/pinpoint/aws-pinpoint-pushtemplate_defaultpushnotificationtemplate.go b/cloudformation/pinpoint/aws-pinpoint-pushtemplate_defaultpushnotificationtemplate.go index 8f87404a41..9e98d39d91 100644 --- a/cloudformation/pinpoint/aws-pinpoint-pushtemplate_defaultpushnotificationtemplate.go +++ b/cloudformation/pinpoint/aws-pinpoint-pushtemplate_defaultpushnotificationtemplate.go @@ -41,6 +41,9 @@ type PushTemplate_DefaultPushNotificationTemplate struct { // 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 diff --git a/cloudformation/pinpoint/aws-pinpoint-segment.go b/cloudformation/pinpoint/aws-pinpoint-segment.go index 77a2e2475f..a4078bebc1 100644 --- a/cloudformation/pinpoint/aws-pinpoint-segment.go +++ b/cloudformation/pinpoint/aws-pinpoint-segment.go @@ -45,6 +45,9 @@ type Segment struct { // 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 @@ -62,12 +65,14 @@ func (r Segment) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -81,6 +86,7 @@ func (r *Segment) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -104,5 +110,8 @@ func (r *Segment) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/pinpoint/aws-pinpoint-segment_attributedimension.go b/cloudformation/pinpoint/aws-pinpoint-segment_attributedimension.go index b065669100..e59319b4d3 100644 --- a/cloudformation/pinpoint/aws-pinpoint-segment_attributedimension.go +++ b/cloudformation/pinpoint/aws-pinpoint-segment_attributedimension.go @@ -26,6 +26,9 @@ type Segment_AttributeDimension struct { // 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 diff --git a/cloudformation/pinpoint/aws-pinpoint-segment_behavior.go b/cloudformation/pinpoint/aws-pinpoint-segment_behavior.go index bab93738d4..b7eab8eef7 100644 --- a/cloudformation/pinpoint/aws-pinpoint-segment_behavior.go +++ b/cloudformation/pinpoint/aws-pinpoint-segment_behavior.go @@ -21,6 +21,9 @@ type Segment_Behavior struct { // 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 diff --git a/cloudformation/pinpoint/aws-pinpoint-segment_coordinates.go b/cloudformation/pinpoint/aws-pinpoint-segment_coordinates.go index 28329e28c1..cd121454d8 100644 --- a/cloudformation/pinpoint/aws-pinpoint-segment_coordinates.go +++ b/cloudformation/pinpoint/aws-pinpoint-segment_coordinates.go @@ -26,6 +26,9 @@ type Segment_Coordinates struct { // 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 diff --git a/cloudformation/pinpoint/aws-pinpoint-segment_demographic.go b/cloudformation/pinpoint/aws-pinpoint-segment_demographic.go index c6dcf3b122..d25c28a60e 100644 --- a/cloudformation/pinpoint/aws-pinpoint-segment_demographic.go +++ b/cloudformation/pinpoint/aws-pinpoint-segment_demographic.go @@ -46,6 +46,9 @@ type Segment_Demographic struct { // 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 diff --git a/cloudformation/pinpoint/aws-pinpoint-segment_gpspoint.go b/cloudformation/pinpoint/aws-pinpoint-segment_gpspoint.go index 6ae772eb01..9e59357a46 100644 --- a/cloudformation/pinpoint/aws-pinpoint-segment_gpspoint.go +++ b/cloudformation/pinpoint/aws-pinpoint-segment_gpspoint.go @@ -26,6 +26,9 @@ type Segment_GPSPoint struct { // 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 diff --git a/cloudformation/pinpoint/aws-pinpoint-segment_groups.go b/cloudformation/pinpoint/aws-pinpoint-segment_groups.go index c0327a0782..ef2573244c 100644 --- a/cloudformation/pinpoint/aws-pinpoint-segment_groups.go +++ b/cloudformation/pinpoint/aws-pinpoint-segment_groups.go @@ -36,6 +36,9 @@ type Segment_Groups struct { // 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 diff --git a/cloudformation/pinpoint/aws-pinpoint-segment_location.go b/cloudformation/pinpoint/aws-pinpoint-segment_location.go index 4af800dba5..0c316792de 100644 --- a/cloudformation/pinpoint/aws-pinpoint-segment_location.go +++ b/cloudformation/pinpoint/aws-pinpoint-segment_location.go @@ -26,6 +26,9 @@ type Segment_Location struct { // 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 diff --git a/cloudformation/pinpoint/aws-pinpoint-segment_recency.go b/cloudformation/pinpoint/aws-pinpoint-segment_recency.go index c6522a157a..2a85fa5344 100644 --- a/cloudformation/pinpoint/aws-pinpoint-segment_recency.go +++ b/cloudformation/pinpoint/aws-pinpoint-segment_recency.go @@ -26,6 +26,9 @@ type Segment_Recency struct { // 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 diff --git a/cloudformation/pinpoint/aws-pinpoint-segment_segmentdimensions.go b/cloudformation/pinpoint/aws-pinpoint-segment_segmentdimensions.go index 7c65357901..988c253886 100644 --- a/cloudformation/pinpoint/aws-pinpoint-segment_segmentdimensions.go +++ b/cloudformation/pinpoint/aws-pinpoint-segment_segmentdimensions.go @@ -46,6 +46,9 @@ type Segment_SegmentDimensions struct { // 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 diff --git a/cloudformation/pinpoint/aws-pinpoint-segment_segmentgroups.go b/cloudformation/pinpoint/aws-pinpoint-segment_segmentgroups.go index 1aaddcbf72..8315206cf2 100644 --- a/cloudformation/pinpoint/aws-pinpoint-segment_segmentgroups.go +++ b/cloudformation/pinpoint/aws-pinpoint-segment_segmentgroups.go @@ -26,6 +26,9 @@ type Segment_SegmentGroups struct { // 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 diff --git a/cloudformation/pinpoint/aws-pinpoint-segment_setdimension.go b/cloudformation/pinpoint/aws-pinpoint-segment_setdimension.go index 7e6beff067..8182a72dde 100644 --- a/cloudformation/pinpoint/aws-pinpoint-segment_setdimension.go +++ b/cloudformation/pinpoint/aws-pinpoint-segment_setdimension.go @@ -26,6 +26,9 @@ type Segment_SetDimension struct { // 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 diff --git a/cloudformation/pinpoint/aws-pinpoint-segment_sourcesegments.go b/cloudformation/pinpoint/aws-pinpoint-segment_sourcesegments.go index eb24965362..2f08b386d4 100644 --- a/cloudformation/pinpoint/aws-pinpoint-segment_sourcesegments.go +++ b/cloudformation/pinpoint/aws-pinpoint-segment_sourcesegments.go @@ -26,6 +26,9 @@ type Segment_SourceSegments struct { // 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 diff --git a/cloudformation/pinpoint/aws-pinpoint-smschannel.go b/cloudformation/pinpoint/aws-pinpoint-smschannel.go index 0e50057f83..456dbc2556 100644 --- a/cloudformation/pinpoint/aws-pinpoint-smschannel.go +++ b/cloudformation/pinpoint/aws-pinpoint-smschannel.go @@ -40,6 +40,9 @@ type SMSChannel struct { // 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 @@ -57,12 +60,14 @@ func (r SMSChannel) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -76,6 +81,7 @@ func (r *SMSChannel) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -99,5 +105,8 @@ func (r *SMSChannel) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/pinpoint/aws-pinpoint-smstemplate.go b/cloudformation/pinpoint/aws-pinpoint-smstemplate.go index a16fd06116..39ae60cd5e 100644 --- a/cloudformation/pinpoint/aws-pinpoint-smstemplate.go +++ b/cloudformation/pinpoint/aws-pinpoint-smstemplate.go @@ -17,11 +17,21 @@ type SmsTemplate struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pinpoint-smstemplate.html#cfn-pinpoint-smstemplate-body Body string `json:"Body,omitempty"` + // DefaultSubstitutions AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pinpoint-smstemplate.html#cfn-pinpoint-smstemplate-defaultsubstitutions + DefaultSubstitutions string `json:"DefaultSubstitutions,omitempty"` + // Tags AWS CloudFormation Property // Required: false // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pinpoint-smstemplate.html#cfn-pinpoint-smstemplate-tags Tags interface{} `json:"Tags,omitempty"` + // TemplateDescription AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pinpoint-smstemplate.html#cfn-pinpoint-smstemplate-templatedescription + TemplateDescription string `json:"TemplateDescription,omitempty"` + // TemplateName AWS CloudFormation Property // Required: true // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pinpoint-smstemplate.html#cfn-pinpoint-smstemplate-templatename @@ -35,6 +45,9 @@ type SmsTemplate struct { // 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 @@ -52,12 +65,14 @@ func (r SmsTemplate) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -71,6 +86,7 @@ func (r *SmsTemplate) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -94,5 +110,8 @@ func (r *SmsTemplate) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/pinpoint/aws-pinpoint-voicechannel.go b/cloudformation/pinpoint/aws-pinpoint-voicechannel.go index 7ffcc48e43..ff6c3148a9 100644 --- a/cloudformation/pinpoint/aws-pinpoint-voicechannel.go +++ b/cloudformation/pinpoint/aws-pinpoint-voicechannel.go @@ -30,6 +30,9 @@ type VoiceChannel struct { // 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 @@ -47,12 +50,14 @@ func (r VoiceChannel) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -66,6 +71,7 @@ func (r *VoiceChannel) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -89,5 +95,8 @@ func (r *VoiceChannel) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/pinpointemail/aws-pinpointemail-configurationset.go b/cloudformation/pinpointemail/aws-pinpointemail-configurationset.go index 1eb533bc61..b765aff9f3 100644 --- a/cloudformation/pinpointemail/aws-pinpointemail-configurationset.go +++ b/cloudformation/pinpointemail/aws-pinpointemail-configurationset.go @@ -50,6 +50,9 @@ type ConfigurationSet struct { // 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 @@ -67,12 +70,14 @@ func (r ConfigurationSet) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -86,6 +91,7 @@ func (r *ConfigurationSet) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -109,5 +115,8 @@ func (r *ConfigurationSet) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/pinpointemail/aws-pinpointemail-configurationset_deliveryoptions.go b/cloudformation/pinpointemail/aws-pinpointemail-configurationset_deliveryoptions.go index 5cc01d6625..997f9f4d1b 100644 --- a/cloudformation/pinpointemail/aws-pinpointemail-configurationset_deliveryoptions.go +++ b/cloudformation/pinpointemail/aws-pinpointemail-configurationset_deliveryoptions.go @@ -21,6 +21,9 @@ type ConfigurationSet_DeliveryOptions struct { // 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 diff --git a/cloudformation/pinpointemail/aws-pinpointemail-configurationset_reputationoptions.go b/cloudformation/pinpointemail/aws-pinpointemail-configurationset_reputationoptions.go index b74107bd45..766ae1bc2a 100644 --- a/cloudformation/pinpointemail/aws-pinpointemail-configurationset_reputationoptions.go +++ b/cloudformation/pinpointemail/aws-pinpointemail-configurationset_reputationoptions.go @@ -21,6 +21,9 @@ type ConfigurationSet_ReputationOptions struct { // 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 diff --git a/cloudformation/pinpointemail/aws-pinpointemail-configurationset_sendingoptions.go b/cloudformation/pinpointemail/aws-pinpointemail-configurationset_sendingoptions.go index 52f76661bb..ee1a858505 100644 --- a/cloudformation/pinpointemail/aws-pinpointemail-configurationset_sendingoptions.go +++ b/cloudformation/pinpointemail/aws-pinpointemail-configurationset_sendingoptions.go @@ -21,6 +21,9 @@ type ConfigurationSet_SendingOptions struct { // 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 diff --git a/cloudformation/pinpointemail/aws-pinpointemail-configurationset_tags.go b/cloudformation/pinpointemail/aws-pinpointemail-configurationset_tags.go index e571db61c1..1f4a60cb97 100644 --- a/cloudformation/pinpointemail/aws-pinpointemail-configurationset_tags.go +++ b/cloudformation/pinpointemail/aws-pinpointemail-configurationset_tags.go @@ -26,6 +26,9 @@ type ConfigurationSet_Tags struct { // 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 diff --git a/cloudformation/pinpointemail/aws-pinpointemail-configurationset_trackingoptions.go b/cloudformation/pinpointemail/aws-pinpointemail-configurationset_trackingoptions.go index 72f5206d6b..655b01dc03 100644 --- a/cloudformation/pinpointemail/aws-pinpointemail-configurationset_trackingoptions.go +++ b/cloudformation/pinpointemail/aws-pinpointemail-configurationset_trackingoptions.go @@ -21,6 +21,9 @@ type ConfigurationSet_TrackingOptions struct { // 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 diff --git a/cloudformation/pinpointemail/aws-pinpointemail-configurationseteventdestination.go b/cloudformation/pinpointemail/aws-pinpointemail-configurationseteventdestination.go index 0fdedc9549..fe539d931d 100644 --- a/cloudformation/pinpointemail/aws-pinpointemail-configurationseteventdestination.go +++ b/cloudformation/pinpointemail/aws-pinpointemail-configurationseteventdestination.go @@ -35,6 +35,9 @@ type ConfigurationSetEventDestination struct { // 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 @@ -52,12 +55,14 @@ func (r ConfigurationSetEventDestination) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -71,6 +76,7 @@ func (r *ConfigurationSetEventDestination) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -94,5 +100,8 @@ func (r *ConfigurationSetEventDestination) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/pinpointemail/aws-pinpointemail-configurationseteventdestination_cloudwatchdestination.go b/cloudformation/pinpointemail/aws-pinpointemail-configurationseteventdestination_cloudwatchdestination.go index 3ba36056c9..54195634d1 100644 --- a/cloudformation/pinpointemail/aws-pinpointemail-configurationseteventdestination_cloudwatchdestination.go +++ b/cloudformation/pinpointemail/aws-pinpointemail-configurationseteventdestination_cloudwatchdestination.go @@ -21,6 +21,9 @@ type ConfigurationSetEventDestination_CloudWatchDestination struct { // 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 diff --git a/cloudformation/pinpointemail/aws-pinpointemail-configurationseteventdestination_dimensionconfiguration.go b/cloudformation/pinpointemail/aws-pinpointemail-configurationseteventdestination_dimensionconfiguration.go index 78996457ef..4b1a9d16ae 100644 --- a/cloudformation/pinpointemail/aws-pinpointemail-configurationseteventdestination_dimensionconfiguration.go +++ b/cloudformation/pinpointemail/aws-pinpointemail-configurationseteventdestination_dimensionconfiguration.go @@ -31,6 +31,9 @@ type ConfigurationSetEventDestination_DimensionConfiguration struct { // 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 diff --git a/cloudformation/pinpointemail/aws-pinpointemail-configurationseteventdestination_eventdestination.go b/cloudformation/pinpointemail/aws-pinpointemail-configurationseteventdestination_eventdestination.go index a23aca4b1d..7a4fd465f0 100644 --- a/cloudformation/pinpointemail/aws-pinpointemail-configurationseteventdestination_eventdestination.go +++ b/cloudformation/pinpointemail/aws-pinpointemail-configurationseteventdestination_eventdestination.go @@ -46,6 +46,9 @@ type ConfigurationSetEventDestination_EventDestination struct { // 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 diff --git a/cloudformation/pinpointemail/aws-pinpointemail-configurationseteventdestination_kinesisfirehosedestination.go b/cloudformation/pinpointemail/aws-pinpointemail-configurationseteventdestination_kinesisfirehosedestination.go index 722a49c957..4b25ee0b9c 100644 --- a/cloudformation/pinpointemail/aws-pinpointemail-configurationseteventdestination_kinesisfirehosedestination.go +++ b/cloudformation/pinpointemail/aws-pinpointemail-configurationseteventdestination_kinesisfirehosedestination.go @@ -26,6 +26,9 @@ type ConfigurationSetEventDestination_KinesisFirehoseDestination struct { // 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 diff --git a/cloudformation/pinpointemail/aws-pinpointemail-configurationseteventdestination_pinpointdestination.go b/cloudformation/pinpointemail/aws-pinpointemail-configurationseteventdestination_pinpointdestination.go index 5ada629d49..2c729aa2ed 100644 --- a/cloudformation/pinpointemail/aws-pinpointemail-configurationseteventdestination_pinpointdestination.go +++ b/cloudformation/pinpointemail/aws-pinpointemail-configurationseteventdestination_pinpointdestination.go @@ -21,6 +21,9 @@ type ConfigurationSetEventDestination_PinpointDestination struct { // 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 diff --git a/cloudformation/pinpointemail/aws-pinpointemail-configurationseteventdestination_snsdestination.go b/cloudformation/pinpointemail/aws-pinpointemail-configurationseteventdestination_snsdestination.go index 5ccf4ea800..0dda0378a8 100644 --- a/cloudformation/pinpointemail/aws-pinpointemail-configurationseteventdestination_snsdestination.go +++ b/cloudformation/pinpointemail/aws-pinpointemail-configurationseteventdestination_snsdestination.go @@ -21,6 +21,9 @@ type ConfigurationSetEventDestination_SnsDestination struct { // 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 diff --git a/cloudformation/pinpointemail/aws-pinpointemail-dedicatedippool.go b/cloudformation/pinpointemail/aws-pinpointemail-dedicatedippool.go index f604cf805d..e23d7c2916 100644 --- a/cloudformation/pinpointemail/aws-pinpointemail-dedicatedippool.go +++ b/cloudformation/pinpointemail/aws-pinpointemail-dedicatedippool.go @@ -30,6 +30,9 @@ type DedicatedIpPool struct { // 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 @@ -47,12 +50,14 @@ func (r DedicatedIpPool) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -66,6 +71,7 @@ func (r *DedicatedIpPool) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -89,5 +95,8 @@ func (r *DedicatedIpPool) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/pinpointemail/aws-pinpointemail-dedicatedippool_tags.go b/cloudformation/pinpointemail/aws-pinpointemail-dedicatedippool_tags.go index c0e7163be1..76bd4bc8c7 100644 --- a/cloudformation/pinpointemail/aws-pinpointemail-dedicatedippool_tags.go +++ b/cloudformation/pinpointemail/aws-pinpointemail-dedicatedippool_tags.go @@ -26,6 +26,9 @@ type DedicatedIpPool_Tags struct { // 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 diff --git a/cloudformation/pinpointemail/aws-pinpointemail-identity.go b/cloudformation/pinpointemail/aws-pinpointemail-identity.go index afd4b1e5c9..01f5b2289a 100644 --- a/cloudformation/pinpointemail/aws-pinpointemail-identity.go +++ b/cloudformation/pinpointemail/aws-pinpointemail-identity.go @@ -45,6 +45,9 @@ type Identity struct { // 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 @@ -62,12 +65,14 @@ func (r Identity) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -81,6 +86,7 @@ func (r *Identity) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -104,5 +110,8 @@ func (r *Identity) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/pinpointemail/aws-pinpointemail-identity_mailfromattributes.go b/cloudformation/pinpointemail/aws-pinpointemail-identity_mailfromattributes.go index 9b1fddd579..becb4641d8 100644 --- a/cloudformation/pinpointemail/aws-pinpointemail-identity_mailfromattributes.go +++ b/cloudformation/pinpointemail/aws-pinpointemail-identity_mailfromattributes.go @@ -26,6 +26,9 @@ type Identity_MailFromAttributes struct { // 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 diff --git a/cloudformation/pinpointemail/aws-pinpointemail-identity_tags.go b/cloudformation/pinpointemail/aws-pinpointemail-identity_tags.go index 4692fc1999..3c1dccefe2 100644 --- a/cloudformation/pinpointemail/aws-pinpointemail-identity_tags.go +++ b/cloudformation/pinpointemail/aws-pinpointemail-identity_tags.go @@ -26,6 +26,9 @@ type Identity_Tags struct { // 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 diff --git a/cloudformation/qldb/aws-qldb-ledger.go b/cloudformation/qldb/aws-qldb-ledger.go index a1a2d727b3..ca2e0c4392 100644 --- a/cloudformation/qldb/aws-qldb-ledger.go +++ b/cloudformation/qldb/aws-qldb-ledger.go @@ -41,6 +41,9 @@ type Ledger struct { // 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 @@ -58,12 +61,14 @@ func (r Ledger) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -77,6 +82,7 @@ func (r *Ledger) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -100,5 +106,8 @@ func (r *Ledger) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/ram/aws-ram-resourceshare.go b/cloudformation/ram/aws-ram-resourceshare.go index 41b7515a17..184ea96b25 100644 --- a/cloudformation/ram/aws-ram-resourceshare.go +++ b/cloudformation/ram/aws-ram-resourceshare.go @@ -46,6 +46,9 @@ type ResourceShare struct { // 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 @@ -63,12 +66,14 @@ func (r ResourceShare) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -82,6 +87,7 @@ func (r *ResourceShare) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -105,5 +111,8 @@ func (r *ResourceShare) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/rds/aws-rds-dbcluster.go b/cloudformation/rds/aws-rds-dbcluster.go index 70d11be123..cc276a4be4 100644 --- a/cloudformation/rds/aws-rds-dbcluster.go +++ b/cloudformation/rds/aws-rds-dbcluster.go @@ -176,6 +176,9 @@ type DBCluster struct { // 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 @@ -193,12 +196,14 @@ func (r DBCluster) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -212,6 +217,7 @@ func (r *DBCluster) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -235,5 +241,8 @@ func (r *DBCluster) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/rds/aws-rds-dbcluster_dbclusterrole.go b/cloudformation/rds/aws-rds-dbcluster_dbclusterrole.go index ecd5a967a7..1b73fdefd3 100644 --- a/cloudformation/rds/aws-rds-dbcluster_dbclusterrole.go +++ b/cloudformation/rds/aws-rds-dbcluster_dbclusterrole.go @@ -26,6 +26,9 @@ type DBCluster_DBClusterRole struct { // 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 diff --git a/cloudformation/rds/aws-rds-dbcluster_scalingconfiguration.go b/cloudformation/rds/aws-rds-dbcluster_scalingconfiguration.go index 3d0a27df13..97cb028988 100644 --- a/cloudformation/rds/aws-rds-dbcluster_scalingconfiguration.go +++ b/cloudformation/rds/aws-rds-dbcluster_scalingconfiguration.go @@ -36,6 +36,9 @@ type DBCluster_ScalingConfiguration struct { // 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 diff --git a/cloudformation/rds/aws-rds-dbclusterparametergroup.go b/cloudformation/rds/aws-rds-dbclusterparametergroup.go index bcdef6e453..7ae8a5955e 100644 --- a/cloudformation/rds/aws-rds-dbclusterparametergroup.go +++ b/cloudformation/rds/aws-rds-dbclusterparametergroup.go @@ -41,6 +41,9 @@ type DBClusterParameterGroup struct { // 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 @@ -58,12 +61,14 @@ func (r DBClusterParameterGroup) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -77,6 +82,7 @@ func (r *DBClusterParameterGroup) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -100,5 +106,8 @@ func (r *DBClusterParameterGroup) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/rds/aws-rds-dbinstance.go b/cloudformation/rds/aws-rds-dbinstance.go index 3d8f23bc4f..ee50484724 100644 --- a/cloudformation/rds/aws-rds-dbinstance.go +++ b/cloudformation/rds/aws-rds-dbinstance.go @@ -43,6 +43,11 @@ type DBInstance struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-database-instance.html#cfn-rds-dbinstance-backupretentionperiod BackupRetentionPeriod int `json:"BackupRetentionPeriod,omitempty"` + // CACertificateIdentifier AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-database-instance.html#cfn-rds-dbinstance-cacertificateidentifier + CACertificateIdentifier string `json:"CACertificateIdentifier,omitempty"` + // CharacterSetName AWS CloudFormation Property // Required: false // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-database-instance.html#cfn-rds-dbinstance-charactersetname @@ -163,6 +168,11 @@ type DBInstance struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-database-instance.html#cfn-rds-dbinstance-masterusername MasterUsername string `json:"MasterUsername,omitempty"` + // MaxAllocatedStorage AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-database-instance.html#cfn-rds-dbinstance-maxallocatedstorage + MaxAllocatedStorage int `json:"MaxAllocatedStorage,omitempty"` + // MonitoringInterval AWS CloudFormation Property // Required: false // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-database-instance.html#cfn-rds-dbinstance-monitoringinterval @@ -271,6 +281,9 @@ type DBInstance struct { // 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 @@ -288,12 +301,14 @@ func (r DBInstance) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -307,6 +322,7 @@ func (r *DBInstance) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -330,5 +346,8 @@ func (r *DBInstance) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/rds/aws-rds-dbinstance_dbinstancerole.go b/cloudformation/rds/aws-rds-dbinstance_dbinstancerole.go index ac16a58e78..7be42c393b 100644 --- a/cloudformation/rds/aws-rds-dbinstance_dbinstancerole.go +++ b/cloudformation/rds/aws-rds-dbinstance_dbinstancerole.go @@ -26,6 +26,9 @@ type DBInstance_DBInstanceRole struct { // 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 diff --git a/cloudformation/rds/aws-rds-dbinstance_processorfeature.go b/cloudformation/rds/aws-rds-dbinstance_processorfeature.go index d9c2edc19f..d9dad523d0 100644 --- a/cloudformation/rds/aws-rds-dbinstance_processorfeature.go +++ b/cloudformation/rds/aws-rds-dbinstance_processorfeature.go @@ -26,6 +26,9 @@ type DBInstance_ProcessorFeature struct { // 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 diff --git a/cloudformation/rds/aws-rds-dbparametergroup.go b/cloudformation/rds/aws-rds-dbparametergroup.go index a4939aa77c..7bbf02e5e1 100644 --- a/cloudformation/rds/aws-rds-dbparametergroup.go +++ b/cloudformation/rds/aws-rds-dbparametergroup.go @@ -41,6 +41,9 @@ type DBParameterGroup struct { // 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 @@ -58,12 +61,14 @@ func (r DBParameterGroup) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -77,6 +82,7 @@ func (r *DBParameterGroup) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -100,5 +106,8 @@ func (r *DBParameterGroup) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/rds/aws-rds-dbsecuritygroup.go b/cloudformation/rds/aws-rds-dbsecuritygroup.go index 1979f79c98..8191977c77 100644 --- a/cloudformation/rds/aws-rds-dbsecuritygroup.go +++ b/cloudformation/rds/aws-rds-dbsecuritygroup.go @@ -41,6 +41,9 @@ type DBSecurityGroup struct { // 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 @@ -58,12 +61,14 @@ func (r DBSecurityGroup) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -77,6 +82,7 @@ func (r *DBSecurityGroup) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -100,5 +106,8 @@ func (r *DBSecurityGroup) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/rds/aws-rds-dbsecuritygroup_ingress.go b/cloudformation/rds/aws-rds-dbsecuritygroup_ingress.go index ea02fe08ea..a44f74bf5a 100644 --- a/cloudformation/rds/aws-rds-dbsecuritygroup_ingress.go +++ b/cloudformation/rds/aws-rds-dbsecuritygroup_ingress.go @@ -36,6 +36,9 @@ type DBSecurityGroup_Ingress struct { // 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 diff --git a/cloudformation/rds/aws-rds-dbsecuritygroupingress.go b/cloudformation/rds/aws-rds-dbsecuritygroupingress.go index 9fe6c8d795..59d8a11c95 100644 --- a/cloudformation/rds/aws-rds-dbsecuritygroupingress.go +++ b/cloudformation/rds/aws-rds-dbsecuritygroupingress.go @@ -45,6 +45,9 @@ type DBSecurityGroupIngress struct { // 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 @@ -62,12 +65,14 @@ func (r DBSecurityGroupIngress) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -81,6 +86,7 @@ func (r *DBSecurityGroupIngress) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -104,5 +110,8 @@ func (r *DBSecurityGroupIngress) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/rds/aws-rds-dbsubnetgroup.go b/cloudformation/rds/aws-rds-dbsubnetgroup.go index 4d59ee6d54..5827f7bb60 100644 --- a/cloudformation/rds/aws-rds-dbsubnetgroup.go +++ b/cloudformation/rds/aws-rds-dbsubnetgroup.go @@ -41,6 +41,9 @@ type DBSubnetGroup struct { // 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 @@ -58,12 +61,14 @@ func (r DBSubnetGroup) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -77,6 +82,7 @@ func (r *DBSubnetGroup) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -100,5 +106,8 @@ func (r *DBSubnetGroup) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/rds/aws-rds-eventsubscription.go b/cloudformation/rds/aws-rds-eventsubscription.go index 5c1c7a6b14..ffec55ed9a 100644 --- a/cloudformation/rds/aws-rds-eventsubscription.go +++ b/cloudformation/rds/aws-rds-eventsubscription.go @@ -45,6 +45,9 @@ type EventSubscription struct { // 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 @@ -62,12 +65,14 @@ func (r EventSubscription) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -81,6 +86,7 @@ func (r *EventSubscription) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -104,5 +110,8 @@ func (r *EventSubscription) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/rds/aws-rds-optiongroup.go b/cloudformation/rds/aws-rds-optiongroup.go index d1f1cc1bf9..cc578fc5a7 100644 --- a/cloudformation/rds/aws-rds-optiongroup.go +++ b/cloudformation/rds/aws-rds-optiongroup.go @@ -46,6 +46,9 @@ type OptionGroup struct { // 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 @@ -63,12 +66,14 @@ func (r OptionGroup) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -82,6 +87,7 @@ func (r *OptionGroup) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -105,5 +111,8 @@ func (r *OptionGroup) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/rds/aws-rds-optiongroup_optionconfiguration.go b/cloudformation/rds/aws-rds-optiongroup_optionconfiguration.go index 9407bfa118..01e2a0877d 100644 --- a/cloudformation/rds/aws-rds-optiongroup_optionconfiguration.go +++ b/cloudformation/rds/aws-rds-optiongroup_optionconfiguration.go @@ -46,6 +46,9 @@ type OptionGroup_OptionConfiguration struct { // 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 diff --git a/cloudformation/rds/aws-rds-optiongroup_optionsetting.go b/cloudformation/rds/aws-rds-optiongroup_optionsetting.go index c192666ceb..4401be77e5 100644 --- a/cloudformation/rds/aws-rds-optiongroup_optionsetting.go +++ b/cloudformation/rds/aws-rds-optiongroup_optionsetting.go @@ -26,6 +26,9 @@ type OptionGroup_OptionSetting struct { // 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 diff --git a/cloudformation/redshift/aws-redshift-cluster.go b/cloudformation/redshift/aws-redshift-cluster.go index 4df10ae60c..559093ae8b 100644 --- a/cloudformation/redshift/aws-redshift-cluster.go +++ b/cloudformation/redshift/aws-redshift-cluster.go @@ -166,6 +166,9 @@ type Cluster struct { // 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 @@ -183,12 +186,14 @@ func (r Cluster) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -202,6 +207,7 @@ func (r *Cluster) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -225,5 +231,8 @@ func (r *Cluster) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/redshift/aws-redshift-cluster_loggingproperties.go b/cloudformation/redshift/aws-redshift-cluster_loggingproperties.go index 584e8c7284..05a9b108a4 100644 --- a/cloudformation/redshift/aws-redshift-cluster_loggingproperties.go +++ b/cloudformation/redshift/aws-redshift-cluster_loggingproperties.go @@ -26,6 +26,9 @@ type Cluster_LoggingProperties struct { // 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 diff --git a/cloudformation/redshift/aws-redshift-clusterparametergroup.go b/cloudformation/redshift/aws-redshift-clusterparametergroup.go index 968d2fef43..149ee61a61 100644 --- a/cloudformation/redshift/aws-redshift-clusterparametergroup.go +++ b/cloudformation/redshift/aws-redshift-clusterparametergroup.go @@ -41,6 +41,9 @@ type ClusterParameterGroup struct { // 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 @@ -58,12 +61,14 @@ func (r ClusterParameterGroup) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -77,6 +82,7 @@ func (r *ClusterParameterGroup) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -100,5 +106,8 @@ func (r *ClusterParameterGroup) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/redshift/aws-redshift-clusterparametergroup_parameter.go b/cloudformation/redshift/aws-redshift-clusterparametergroup_parameter.go index 20cd4c5fd1..2cc311df0b 100644 --- a/cloudformation/redshift/aws-redshift-clusterparametergroup_parameter.go +++ b/cloudformation/redshift/aws-redshift-clusterparametergroup_parameter.go @@ -26,6 +26,9 @@ type ClusterParameterGroup_Parameter struct { // 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 diff --git a/cloudformation/redshift/aws-redshift-clustersecuritygroup.go b/cloudformation/redshift/aws-redshift-clustersecuritygroup.go index 2f22cd3001..2cab5cc38d 100644 --- a/cloudformation/redshift/aws-redshift-clustersecuritygroup.go +++ b/cloudformation/redshift/aws-redshift-clustersecuritygroup.go @@ -31,6 +31,9 @@ type ClusterSecurityGroup struct { // 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 @@ -48,12 +51,14 @@ func (r ClusterSecurityGroup) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -67,6 +72,7 @@ func (r *ClusterSecurityGroup) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -90,5 +96,8 @@ func (r *ClusterSecurityGroup) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/redshift/aws-redshift-clustersecuritygroupingress.go b/cloudformation/redshift/aws-redshift-clustersecuritygroupingress.go index 07e673c40e..aa3a54e060 100644 --- a/cloudformation/redshift/aws-redshift-clustersecuritygroupingress.go +++ b/cloudformation/redshift/aws-redshift-clustersecuritygroupingress.go @@ -40,6 +40,9 @@ type ClusterSecurityGroupIngress struct { // 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 @@ -57,12 +60,14 @@ func (r ClusterSecurityGroupIngress) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -76,6 +81,7 @@ func (r *ClusterSecurityGroupIngress) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -99,5 +105,8 @@ func (r *ClusterSecurityGroupIngress) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/redshift/aws-redshift-clustersubnetgroup.go b/cloudformation/redshift/aws-redshift-clustersubnetgroup.go index 2babc14a37..c37da3c74e 100644 --- a/cloudformation/redshift/aws-redshift-clustersubnetgroup.go +++ b/cloudformation/redshift/aws-redshift-clustersubnetgroup.go @@ -36,6 +36,9 @@ type ClusterSubnetGroup struct { // 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 @@ -53,12 +56,14 @@ func (r ClusterSubnetGroup) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -72,6 +77,7 @@ func (r *ClusterSubnetGroup) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -95,5 +101,8 @@ func (r *ClusterSubnetGroup) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/robomaker/aws-robomaker-fleet.go b/cloudformation/robomaker/aws-robomaker-fleet.go index 0e67de3d9d..1770b047b5 100644 --- a/cloudformation/robomaker/aws-robomaker-fleet.go +++ b/cloudformation/robomaker/aws-robomaker-fleet.go @@ -30,6 +30,9 @@ type Fleet struct { // 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 @@ -47,12 +50,14 @@ func (r Fleet) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -66,6 +71,7 @@ func (r *Fleet) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -89,5 +95,8 @@ func (r *Fleet) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/robomaker/aws-robomaker-robot.go b/cloudformation/robomaker/aws-robomaker-robot.go index c3529ec764..b1a662cc6e 100644 --- a/cloudformation/robomaker/aws-robomaker-robot.go +++ b/cloudformation/robomaker/aws-robomaker-robot.go @@ -45,6 +45,9 @@ type Robot struct { // 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 @@ -62,12 +65,14 @@ func (r Robot) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -81,6 +86,7 @@ func (r *Robot) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -104,5 +110,8 @@ func (r *Robot) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/robomaker/aws-robomaker-robotapplication.go b/cloudformation/robomaker/aws-robomaker-robotapplication.go index 7bc17e0ec8..f2af301055 100644 --- a/cloudformation/robomaker/aws-robomaker-robotapplication.go +++ b/cloudformation/robomaker/aws-robomaker-robotapplication.go @@ -45,6 +45,9 @@ type RobotApplication struct { // 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 @@ -62,12 +65,14 @@ func (r RobotApplication) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -81,6 +86,7 @@ func (r *RobotApplication) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -104,5 +110,8 @@ func (r *RobotApplication) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/robomaker/aws-robomaker-robotapplication_robotsoftwaresuite.go b/cloudformation/robomaker/aws-robomaker-robotapplication_robotsoftwaresuite.go index c17e0a44de..a5d6fdae8d 100644 --- a/cloudformation/robomaker/aws-robomaker-robotapplication_robotsoftwaresuite.go +++ b/cloudformation/robomaker/aws-robomaker-robotapplication_robotsoftwaresuite.go @@ -26,6 +26,9 @@ type RobotApplication_RobotSoftwareSuite struct { // 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 diff --git a/cloudformation/robomaker/aws-robomaker-robotapplication_sourceconfig.go b/cloudformation/robomaker/aws-robomaker-robotapplication_sourceconfig.go index 3bb105d149..29f4782ef1 100644 --- a/cloudformation/robomaker/aws-robomaker-robotapplication_sourceconfig.go +++ b/cloudformation/robomaker/aws-robomaker-robotapplication_sourceconfig.go @@ -31,6 +31,9 @@ type RobotApplication_SourceConfig struct { // 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 diff --git a/cloudformation/robomaker/aws-robomaker-robotapplicationversion.go b/cloudformation/robomaker/aws-robomaker-robotapplicationversion.go index 698618fc5e..3e00e9ac5b 100644 --- a/cloudformation/robomaker/aws-robomaker-robotapplicationversion.go +++ b/cloudformation/robomaker/aws-robomaker-robotapplicationversion.go @@ -30,6 +30,9 @@ type RobotApplicationVersion struct { // 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 @@ -47,12 +50,14 @@ func (r RobotApplicationVersion) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -66,6 +71,7 @@ func (r *RobotApplicationVersion) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -89,5 +95,8 @@ func (r *RobotApplicationVersion) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/robomaker/aws-robomaker-simulationapplication.go b/cloudformation/robomaker/aws-robomaker-simulationapplication.go index 1c8d9a1854..7df072d440 100644 --- a/cloudformation/robomaker/aws-robomaker-simulationapplication.go +++ b/cloudformation/robomaker/aws-robomaker-simulationapplication.go @@ -55,6 +55,9 @@ type SimulationApplication struct { // 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 @@ -72,12 +75,14 @@ func (r SimulationApplication) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -91,6 +96,7 @@ func (r *SimulationApplication) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -114,5 +120,8 @@ func (r *SimulationApplication) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/robomaker/aws-robomaker-simulationapplication_renderingengine.go b/cloudformation/robomaker/aws-robomaker-simulationapplication_renderingengine.go index ae07060f2f..edb1b8c9c7 100644 --- a/cloudformation/robomaker/aws-robomaker-simulationapplication_renderingengine.go +++ b/cloudformation/robomaker/aws-robomaker-simulationapplication_renderingengine.go @@ -26,6 +26,9 @@ type SimulationApplication_RenderingEngine struct { // 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 diff --git a/cloudformation/robomaker/aws-robomaker-simulationapplication_robotsoftwaresuite.go b/cloudformation/robomaker/aws-robomaker-simulationapplication_robotsoftwaresuite.go index 6a2e11e9a7..70dab0e65f 100644 --- a/cloudformation/robomaker/aws-robomaker-simulationapplication_robotsoftwaresuite.go +++ b/cloudformation/robomaker/aws-robomaker-simulationapplication_robotsoftwaresuite.go @@ -26,6 +26,9 @@ type SimulationApplication_RobotSoftwareSuite struct { // 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 diff --git a/cloudformation/robomaker/aws-robomaker-simulationapplication_simulationsoftwaresuite.go b/cloudformation/robomaker/aws-robomaker-simulationapplication_simulationsoftwaresuite.go index 75b4cc3a91..a8248b845c 100644 --- a/cloudformation/robomaker/aws-robomaker-simulationapplication_simulationsoftwaresuite.go +++ b/cloudformation/robomaker/aws-robomaker-simulationapplication_simulationsoftwaresuite.go @@ -26,6 +26,9 @@ type SimulationApplication_SimulationSoftwareSuite struct { // 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 diff --git a/cloudformation/robomaker/aws-robomaker-simulationapplication_sourceconfig.go b/cloudformation/robomaker/aws-robomaker-simulationapplication_sourceconfig.go index d130019339..6ac4f4ee9f 100644 --- a/cloudformation/robomaker/aws-robomaker-simulationapplication_sourceconfig.go +++ b/cloudformation/robomaker/aws-robomaker-simulationapplication_sourceconfig.go @@ -31,6 +31,9 @@ type SimulationApplication_SourceConfig struct { // 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 diff --git a/cloudformation/robomaker/aws-robomaker-simulationapplicationversion.go b/cloudformation/robomaker/aws-robomaker-simulationapplicationversion.go index 57211b9cf6..f2be538c1d 100644 --- a/cloudformation/robomaker/aws-robomaker-simulationapplicationversion.go +++ b/cloudformation/robomaker/aws-robomaker-simulationapplicationversion.go @@ -30,6 +30,9 @@ type SimulationApplicationVersion struct { // 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 @@ -47,12 +50,14 @@ func (r SimulationApplicationVersion) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -66,6 +71,7 @@ func (r *SimulationApplicationVersion) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -89,5 +95,8 @@ func (r *SimulationApplicationVersion) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/route53/aws-route53-healthcheck.go b/cloudformation/route53/aws-route53-healthcheck.go index bb9a4b5cc2..538a942c28 100644 --- a/cloudformation/route53/aws-route53-healthcheck.go +++ b/cloudformation/route53/aws-route53-healthcheck.go @@ -30,6 +30,9 @@ type HealthCheck struct { // 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 @@ -47,12 +50,14 @@ func (r HealthCheck) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -66,6 +71,7 @@ func (r *HealthCheck) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -89,5 +95,8 @@ func (r *HealthCheck) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/route53/aws-route53-healthcheck_alarmidentifier.go b/cloudformation/route53/aws-route53-healthcheck_alarmidentifier.go index a14d499a4f..a15c02283f 100644 --- a/cloudformation/route53/aws-route53-healthcheck_alarmidentifier.go +++ b/cloudformation/route53/aws-route53-healthcheck_alarmidentifier.go @@ -26,6 +26,9 @@ type HealthCheck_AlarmIdentifier struct { // 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 diff --git a/cloudformation/route53/aws-route53-healthcheck_healthcheckconfig.go b/cloudformation/route53/aws-route53-healthcheck_healthcheckconfig.go index c30a92c921..9064cec30e 100644 --- a/cloudformation/route53/aws-route53-healthcheck_healthcheckconfig.go +++ b/cloudformation/route53/aws-route53-healthcheck_healthcheckconfig.go @@ -96,6 +96,9 @@ type HealthCheck_HealthCheckConfig struct { // 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 diff --git a/cloudformation/route53/aws-route53-healthcheck_healthchecktag.go b/cloudformation/route53/aws-route53-healthcheck_healthchecktag.go index b58907432d..8743d2e562 100644 --- a/cloudformation/route53/aws-route53-healthcheck_healthchecktag.go +++ b/cloudformation/route53/aws-route53-healthcheck_healthchecktag.go @@ -26,6 +26,9 @@ type HealthCheck_HealthCheckTag struct { // 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 diff --git a/cloudformation/route53/aws-route53-hostedzone.go b/cloudformation/route53/aws-route53-hostedzone.go index 9da132e0c0..66ba649dfe 100644 --- a/cloudformation/route53/aws-route53-hostedzone.go +++ b/cloudformation/route53/aws-route53-hostedzone.go @@ -45,6 +45,9 @@ type HostedZone struct { // 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 @@ -62,12 +65,14 @@ func (r HostedZone) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -81,6 +86,7 @@ func (r *HostedZone) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -104,5 +110,8 @@ func (r *HostedZone) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/route53/aws-route53-hostedzone_hostedzoneconfig.go b/cloudformation/route53/aws-route53-hostedzone_hostedzoneconfig.go index c955aabe9c..6ddb1ce22f 100644 --- a/cloudformation/route53/aws-route53-hostedzone_hostedzoneconfig.go +++ b/cloudformation/route53/aws-route53-hostedzone_hostedzoneconfig.go @@ -21,6 +21,9 @@ type HostedZone_HostedZoneConfig struct { // 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 diff --git a/cloudformation/route53/aws-route53-hostedzone_hostedzonetag.go b/cloudformation/route53/aws-route53-hostedzone_hostedzonetag.go index 470c87b724..d22d9d565e 100644 --- a/cloudformation/route53/aws-route53-hostedzone_hostedzonetag.go +++ b/cloudformation/route53/aws-route53-hostedzone_hostedzonetag.go @@ -26,6 +26,9 @@ type HostedZone_HostedZoneTag struct { // 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 diff --git a/cloudformation/route53/aws-route53-hostedzone_queryloggingconfig.go b/cloudformation/route53/aws-route53-hostedzone_queryloggingconfig.go index 0e6e440697..aa7397b971 100644 --- a/cloudformation/route53/aws-route53-hostedzone_queryloggingconfig.go +++ b/cloudformation/route53/aws-route53-hostedzone_queryloggingconfig.go @@ -21,6 +21,9 @@ type HostedZone_QueryLoggingConfig struct { // 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 diff --git a/cloudformation/route53/aws-route53-hostedzone_vpc.go b/cloudformation/route53/aws-route53-hostedzone_vpc.go index 9986a4e283..c076624af7 100644 --- a/cloudformation/route53/aws-route53-hostedzone_vpc.go +++ b/cloudformation/route53/aws-route53-hostedzone_vpc.go @@ -26,6 +26,9 @@ type HostedZone_VPC struct { // 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 diff --git a/cloudformation/route53/aws-route53-recordset.go b/cloudformation/route53/aws-route53-recordset.go index 6d4933e184..7003528764 100644 --- a/cloudformation/route53/aws-route53-recordset.go +++ b/cloudformation/route53/aws-route53-recordset.go @@ -95,6 +95,9 @@ type RecordSet struct { // 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 @@ -112,12 +115,14 @@ func (r RecordSet) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -131,6 +136,7 @@ func (r *RecordSet) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -154,5 +160,8 @@ func (r *RecordSet) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/route53/aws-route53-recordset_aliastarget.go b/cloudformation/route53/aws-route53-recordset_aliastarget.go index 51ce64d7af..9fe4592908 100644 --- a/cloudformation/route53/aws-route53-recordset_aliastarget.go +++ b/cloudformation/route53/aws-route53-recordset_aliastarget.go @@ -31,6 +31,9 @@ type RecordSet_AliasTarget struct { // 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 diff --git a/cloudformation/route53/aws-route53-recordset_geolocation.go b/cloudformation/route53/aws-route53-recordset_geolocation.go index 7aa3a77f9d..57f53002ec 100644 --- a/cloudformation/route53/aws-route53-recordset_geolocation.go +++ b/cloudformation/route53/aws-route53-recordset_geolocation.go @@ -31,6 +31,9 @@ type RecordSet_GeoLocation struct { // 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 diff --git a/cloudformation/route53/aws-route53-recordsetgroup.go b/cloudformation/route53/aws-route53-recordsetgroup.go index bcd18f5f16..a90b8c6eaf 100644 --- a/cloudformation/route53/aws-route53-recordsetgroup.go +++ b/cloudformation/route53/aws-route53-recordsetgroup.go @@ -40,6 +40,9 @@ type RecordSetGroup struct { // 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 @@ -57,12 +60,14 @@ func (r RecordSetGroup) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -76,6 +81,7 @@ func (r *RecordSetGroup) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -99,5 +105,8 @@ func (r *RecordSetGroup) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/route53/aws-route53-recordsetgroup_aliastarget.go b/cloudformation/route53/aws-route53-recordsetgroup_aliastarget.go index 494bb511f2..e782686130 100644 --- a/cloudformation/route53/aws-route53-recordsetgroup_aliastarget.go +++ b/cloudformation/route53/aws-route53-recordsetgroup_aliastarget.go @@ -31,6 +31,9 @@ type RecordSetGroup_AliasTarget struct { // 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 diff --git a/cloudformation/route53/aws-route53-recordsetgroup_geolocation.go b/cloudformation/route53/aws-route53-recordsetgroup_geolocation.go index 988ce26981..c0ed5396b2 100644 --- a/cloudformation/route53/aws-route53-recordsetgroup_geolocation.go +++ b/cloudformation/route53/aws-route53-recordsetgroup_geolocation.go @@ -31,6 +31,9 @@ type RecordSetGroup_GeoLocation struct { // 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 diff --git a/cloudformation/route53/aws-route53-recordsetgroup_recordset.go b/cloudformation/route53/aws-route53-recordsetgroup_recordset.go index 30bd41ceb9..470c6fdd6a 100644 --- a/cloudformation/route53/aws-route53-recordsetgroup_recordset.go +++ b/cloudformation/route53/aws-route53-recordsetgroup_recordset.go @@ -91,6 +91,9 @@ type RecordSetGroup_RecordSet struct { // 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 diff --git a/cloudformation/route53resolver/aws-route53resolver-resolverendpoint.go b/cloudformation/route53resolver/aws-route53resolver-resolverendpoint.go index c2b38419c6..6f7011eccb 100644 --- a/cloudformation/route53resolver/aws-route53resolver-resolverendpoint.go +++ b/cloudformation/route53resolver/aws-route53resolver-resolverendpoint.go @@ -46,6 +46,9 @@ type ResolverEndpoint struct { // 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 @@ -63,12 +66,14 @@ func (r ResolverEndpoint) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -82,6 +87,7 @@ func (r *ResolverEndpoint) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -105,5 +111,8 @@ func (r *ResolverEndpoint) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/route53resolver/aws-route53resolver-resolverendpoint_ipaddressrequest.go b/cloudformation/route53resolver/aws-route53resolver-resolverendpoint_ipaddressrequest.go index c75e00627d..b173eafd1c 100644 --- a/cloudformation/route53resolver/aws-route53resolver-resolverendpoint_ipaddressrequest.go +++ b/cloudformation/route53resolver/aws-route53resolver-resolverendpoint_ipaddressrequest.go @@ -26,6 +26,9 @@ type ResolverEndpoint_IpAddressRequest struct { // 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 diff --git a/cloudformation/route53resolver/aws-route53resolver-resolverrule.go b/cloudformation/route53resolver/aws-route53resolver-resolverrule.go index 688e8aaab5..38673dc3e9 100644 --- a/cloudformation/route53resolver/aws-route53resolver-resolverrule.go +++ b/cloudformation/route53resolver/aws-route53resolver-resolverrule.go @@ -51,6 +51,9 @@ type ResolverRule struct { // 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 @@ -68,12 +71,14 @@ func (r ResolverRule) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -87,6 +92,7 @@ func (r *ResolverRule) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -110,5 +116,8 @@ func (r *ResolverRule) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/route53resolver/aws-route53resolver-resolverrule_targetaddress.go b/cloudformation/route53resolver/aws-route53resolver-resolverrule_targetaddress.go index 6cd7439544..06b90c8744 100644 --- a/cloudformation/route53resolver/aws-route53resolver-resolverrule_targetaddress.go +++ b/cloudformation/route53resolver/aws-route53resolver-resolverrule_targetaddress.go @@ -26,6 +26,9 @@ type ResolverRule_TargetAddress struct { // 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 diff --git a/cloudformation/route53resolver/aws-route53resolver-resolverruleassociation.go b/cloudformation/route53resolver/aws-route53resolver-resolverruleassociation.go index 3fb1613ad6..44542fbe82 100644 --- a/cloudformation/route53resolver/aws-route53resolver-resolverruleassociation.go +++ b/cloudformation/route53resolver/aws-route53resolver-resolverruleassociation.go @@ -35,6 +35,9 @@ type ResolverRuleAssociation struct { // 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 @@ -52,12 +55,14 @@ func (r ResolverRuleAssociation) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -71,6 +76,7 @@ func (r *ResolverRuleAssociation) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -94,5 +100,8 @@ func (r *ResolverRuleAssociation) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/s3/aws-s3-accesspoint.go b/cloudformation/s3/aws-s3-accesspoint.go index a1c85433fd..0b4b9fc1aa 100644 --- a/cloudformation/s3/aws-s3-accesspoint.go +++ b/cloudformation/s3/aws-s3-accesspoint.go @@ -60,6 +60,9 @@ type AccessPoint struct { // 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 @@ -77,12 +80,14 @@ func (r AccessPoint) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -96,6 +101,7 @@ func (r *AccessPoint) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -119,5 +125,8 @@ func (r *AccessPoint) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/s3/aws-s3-accesspoint_publicaccessblockconfiguration.go b/cloudformation/s3/aws-s3-accesspoint_publicaccessblockconfiguration.go index d66d49c1e6..1a5f0a70d2 100644 --- a/cloudformation/s3/aws-s3-accesspoint_publicaccessblockconfiguration.go +++ b/cloudformation/s3/aws-s3-accesspoint_publicaccessblockconfiguration.go @@ -36,6 +36,9 @@ type AccessPoint_PublicAccessBlockConfiguration struct { // 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 diff --git a/cloudformation/s3/aws-s3-accesspoint_vpcconfiguration.go b/cloudformation/s3/aws-s3-accesspoint_vpcconfiguration.go index 231ad12ae1..4f8d6cca6d 100644 --- a/cloudformation/s3/aws-s3-accesspoint_vpcconfiguration.go +++ b/cloudformation/s3/aws-s3-accesspoint_vpcconfiguration.go @@ -21,6 +21,9 @@ type AccessPoint_VpcConfiguration struct { // 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 diff --git a/cloudformation/s3/aws-s3-bucket.go b/cloudformation/s3/aws-s3-bucket.go index 134de9001d..62e293d048 100644 --- a/cloudformation/s3/aws-s3-bucket.go +++ b/cloudformation/s3/aws-s3-bucket.go @@ -111,6 +111,9 @@ type Bucket struct { // 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 @@ -128,12 +131,14 @@ func (r Bucket) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -147,6 +152,7 @@ func (r *Bucket) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -170,5 +176,8 @@ func (r *Bucket) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/s3/aws-s3-bucket_abortincompletemultipartupload.go b/cloudformation/s3/aws-s3-bucket_abortincompletemultipartupload.go index 9fd155dc4a..60afe2ba37 100644 --- a/cloudformation/s3/aws-s3-bucket_abortincompletemultipartupload.go +++ b/cloudformation/s3/aws-s3-bucket_abortincompletemultipartupload.go @@ -21,6 +21,9 @@ type Bucket_AbortIncompleteMultipartUpload struct { // 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 diff --git a/cloudformation/s3/aws-s3-bucket_accelerateconfiguration.go b/cloudformation/s3/aws-s3-bucket_accelerateconfiguration.go index 71d895341a..ca676e8bba 100644 --- a/cloudformation/s3/aws-s3-bucket_accelerateconfiguration.go +++ b/cloudformation/s3/aws-s3-bucket_accelerateconfiguration.go @@ -21,6 +21,9 @@ type Bucket_AccelerateConfiguration struct { // 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 diff --git a/cloudformation/s3/aws-s3-bucket_accesscontroltranslation.go b/cloudformation/s3/aws-s3-bucket_accesscontroltranslation.go index 9f30dcccc0..961819ebe4 100644 --- a/cloudformation/s3/aws-s3-bucket_accesscontroltranslation.go +++ b/cloudformation/s3/aws-s3-bucket_accesscontroltranslation.go @@ -21,6 +21,9 @@ type Bucket_AccessControlTranslation struct { // 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 diff --git a/cloudformation/s3/aws-s3-bucket_analyticsconfiguration.go b/cloudformation/s3/aws-s3-bucket_analyticsconfiguration.go index a571c5bc51..45e1c53cb5 100644 --- a/cloudformation/s3/aws-s3-bucket_analyticsconfiguration.go +++ b/cloudformation/s3/aws-s3-bucket_analyticsconfiguration.go @@ -36,6 +36,9 @@ type Bucket_AnalyticsConfiguration struct { // 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 diff --git a/cloudformation/s3/aws-s3-bucket_bucketencryption.go b/cloudformation/s3/aws-s3-bucket_bucketencryption.go index cd03ee8abd..99ad3821bd 100644 --- a/cloudformation/s3/aws-s3-bucket_bucketencryption.go +++ b/cloudformation/s3/aws-s3-bucket_bucketencryption.go @@ -21,6 +21,9 @@ type Bucket_BucketEncryption struct { // 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 diff --git a/cloudformation/s3/aws-s3-bucket_corsconfiguration.go b/cloudformation/s3/aws-s3-bucket_corsconfiguration.go index d1ae817947..7049e79e5b 100644 --- a/cloudformation/s3/aws-s3-bucket_corsconfiguration.go +++ b/cloudformation/s3/aws-s3-bucket_corsconfiguration.go @@ -21,6 +21,9 @@ type Bucket_CorsConfiguration struct { // 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 diff --git a/cloudformation/s3/aws-s3-bucket_corsrule.go b/cloudformation/s3/aws-s3-bucket_corsrule.go index b0fa6a9ecc..bee2c9c386 100644 --- a/cloudformation/s3/aws-s3-bucket_corsrule.go +++ b/cloudformation/s3/aws-s3-bucket_corsrule.go @@ -46,6 +46,9 @@ type Bucket_CorsRule struct { // 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 diff --git a/cloudformation/s3/aws-s3-bucket_dataexport.go b/cloudformation/s3/aws-s3-bucket_dataexport.go index 370031d479..a9bb487d16 100644 --- a/cloudformation/s3/aws-s3-bucket_dataexport.go +++ b/cloudformation/s3/aws-s3-bucket_dataexport.go @@ -26,6 +26,9 @@ type Bucket_DataExport struct { // 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 diff --git a/cloudformation/s3/aws-s3-bucket_defaultretention.go b/cloudformation/s3/aws-s3-bucket_defaultretention.go index 418b403d9a..529523604e 100644 --- a/cloudformation/s3/aws-s3-bucket_defaultretention.go +++ b/cloudformation/s3/aws-s3-bucket_defaultretention.go @@ -31,6 +31,9 @@ type Bucket_DefaultRetention struct { // 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 diff --git a/cloudformation/s3/aws-s3-bucket_destination.go b/cloudformation/s3/aws-s3-bucket_destination.go index e0f8a8998e..9ceda35a45 100644 --- a/cloudformation/s3/aws-s3-bucket_destination.go +++ b/cloudformation/s3/aws-s3-bucket_destination.go @@ -36,6 +36,9 @@ type Bucket_Destination struct { // 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 diff --git a/cloudformation/s3/aws-s3-bucket_encryptionconfiguration.go b/cloudformation/s3/aws-s3-bucket_encryptionconfiguration.go index 9885069173..eb5191b548 100644 --- a/cloudformation/s3/aws-s3-bucket_encryptionconfiguration.go +++ b/cloudformation/s3/aws-s3-bucket_encryptionconfiguration.go @@ -21,6 +21,9 @@ type Bucket_EncryptionConfiguration struct { // 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 diff --git a/cloudformation/s3/aws-s3-bucket_filterrule.go b/cloudformation/s3/aws-s3-bucket_filterrule.go index cb69387d4c..8bc9d51595 100644 --- a/cloudformation/s3/aws-s3-bucket_filterrule.go +++ b/cloudformation/s3/aws-s3-bucket_filterrule.go @@ -26,6 +26,9 @@ type Bucket_FilterRule struct { // 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 diff --git a/cloudformation/s3/aws-s3-bucket_inventoryconfiguration.go b/cloudformation/s3/aws-s3-bucket_inventoryconfiguration.go index e6ee9325b1..7c8fc79710 100644 --- a/cloudformation/s3/aws-s3-bucket_inventoryconfiguration.go +++ b/cloudformation/s3/aws-s3-bucket_inventoryconfiguration.go @@ -51,6 +51,9 @@ type Bucket_InventoryConfiguration struct { // 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 diff --git a/cloudformation/s3/aws-s3-bucket_lambdaconfiguration.go b/cloudformation/s3/aws-s3-bucket_lambdaconfiguration.go index a28e613193..0f5c3aaad9 100644 --- a/cloudformation/s3/aws-s3-bucket_lambdaconfiguration.go +++ b/cloudformation/s3/aws-s3-bucket_lambdaconfiguration.go @@ -31,6 +31,9 @@ type Bucket_LambdaConfiguration struct { // 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 diff --git a/cloudformation/s3/aws-s3-bucket_lifecycleconfiguration.go b/cloudformation/s3/aws-s3-bucket_lifecycleconfiguration.go index 143d023292..40ea18021b 100644 --- a/cloudformation/s3/aws-s3-bucket_lifecycleconfiguration.go +++ b/cloudformation/s3/aws-s3-bucket_lifecycleconfiguration.go @@ -21,6 +21,9 @@ type Bucket_LifecycleConfiguration struct { // 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 diff --git a/cloudformation/s3/aws-s3-bucket_loggingconfiguration.go b/cloudformation/s3/aws-s3-bucket_loggingconfiguration.go index 767f7f8a79..33d4580ab8 100644 --- a/cloudformation/s3/aws-s3-bucket_loggingconfiguration.go +++ b/cloudformation/s3/aws-s3-bucket_loggingconfiguration.go @@ -26,6 +26,9 @@ type Bucket_LoggingConfiguration struct { // 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 diff --git a/cloudformation/s3/aws-s3-bucket_metricsconfiguration.go b/cloudformation/s3/aws-s3-bucket_metricsconfiguration.go index cce4a18b8d..306793b42a 100644 --- a/cloudformation/s3/aws-s3-bucket_metricsconfiguration.go +++ b/cloudformation/s3/aws-s3-bucket_metricsconfiguration.go @@ -31,6 +31,9 @@ type Bucket_MetricsConfiguration struct { // 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 diff --git a/cloudformation/s3/aws-s3-bucket_noncurrentversiontransition.go b/cloudformation/s3/aws-s3-bucket_noncurrentversiontransition.go index e49ca8de88..5808fd202f 100644 --- a/cloudformation/s3/aws-s3-bucket_noncurrentversiontransition.go +++ b/cloudformation/s3/aws-s3-bucket_noncurrentversiontransition.go @@ -26,6 +26,9 @@ type Bucket_NoncurrentVersionTransition struct { // 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 diff --git a/cloudformation/s3/aws-s3-bucket_notificationconfiguration.go b/cloudformation/s3/aws-s3-bucket_notificationconfiguration.go index af508bcfd0..98ab040203 100644 --- a/cloudformation/s3/aws-s3-bucket_notificationconfiguration.go +++ b/cloudformation/s3/aws-s3-bucket_notificationconfiguration.go @@ -31,6 +31,9 @@ type Bucket_NotificationConfiguration struct { // 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 diff --git a/cloudformation/s3/aws-s3-bucket_notificationfilter.go b/cloudformation/s3/aws-s3-bucket_notificationfilter.go index 690a24f206..5f059373b7 100644 --- a/cloudformation/s3/aws-s3-bucket_notificationfilter.go +++ b/cloudformation/s3/aws-s3-bucket_notificationfilter.go @@ -21,6 +21,9 @@ type Bucket_NotificationFilter struct { // 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 diff --git a/cloudformation/s3/aws-s3-bucket_objectlockconfiguration.go b/cloudformation/s3/aws-s3-bucket_objectlockconfiguration.go index d8535671c1..e7145c6ac5 100644 --- a/cloudformation/s3/aws-s3-bucket_objectlockconfiguration.go +++ b/cloudformation/s3/aws-s3-bucket_objectlockconfiguration.go @@ -26,6 +26,9 @@ type Bucket_ObjectLockConfiguration struct { // 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 diff --git a/cloudformation/s3/aws-s3-bucket_objectlockrule.go b/cloudformation/s3/aws-s3-bucket_objectlockrule.go index d000153004..6eeb0003ee 100644 --- a/cloudformation/s3/aws-s3-bucket_objectlockrule.go +++ b/cloudformation/s3/aws-s3-bucket_objectlockrule.go @@ -21,6 +21,9 @@ type Bucket_ObjectLockRule struct { // 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 diff --git a/cloudformation/s3/aws-s3-bucket_publicaccessblockconfiguration.go b/cloudformation/s3/aws-s3-bucket_publicaccessblockconfiguration.go index 54e3348246..20537bf847 100644 --- a/cloudformation/s3/aws-s3-bucket_publicaccessblockconfiguration.go +++ b/cloudformation/s3/aws-s3-bucket_publicaccessblockconfiguration.go @@ -36,6 +36,9 @@ type Bucket_PublicAccessBlockConfiguration struct { // 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 diff --git a/cloudformation/s3/aws-s3-bucket_queueconfiguration.go b/cloudformation/s3/aws-s3-bucket_queueconfiguration.go index ec174c8095..a47051a412 100644 --- a/cloudformation/s3/aws-s3-bucket_queueconfiguration.go +++ b/cloudformation/s3/aws-s3-bucket_queueconfiguration.go @@ -31,6 +31,9 @@ type Bucket_QueueConfiguration struct { // 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 diff --git a/cloudformation/s3/aws-s3-bucket_redirectallrequeststo.go b/cloudformation/s3/aws-s3-bucket_redirectallrequeststo.go index 48507a26e8..9a3415d752 100644 --- a/cloudformation/s3/aws-s3-bucket_redirectallrequeststo.go +++ b/cloudformation/s3/aws-s3-bucket_redirectallrequeststo.go @@ -26,6 +26,9 @@ type Bucket_RedirectAllRequestsTo struct { // 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 diff --git a/cloudformation/s3/aws-s3-bucket_redirectrule.go b/cloudformation/s3/aws-s3-bucket_redirectrule.go index dc6e9cadc3..9eaa6d2603 100644 --- a/cloudformation/s3/aws-s3-bucket_redirectrule.go +++ b/cloudformation/s3/aws-s3-bucket_redirectrule.go @@ -41,6 +41,9 @@ type Bucket_RedirectRule struct { // 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 diff --git a/cloudformation/s3/aws-s3-bucket_replicationconfiguration.go b/cloudformation/s3/aws-s3-bucket_replicationconfiguration.go index 40360cf504..633cec73ea 100644 --- a/cloudformation/s3/aws-s3-bucket_replicationconfiguration.go +++ b/cloudformation/s3/aws-s3-bucket_replicationconfiguration.go @@ -26,6 +26,9 @@ type Bucket_ReplicationConfiguration struct { // 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 diff --git a/cloudformation/s3/aws-s3-bucket_replicationdestination.go b/cloudformation/s3/aws-s3-bucket_replicationdestination.go index a6bafd9e75..be5e17432e 100644 --- a/cloudformation/s3/aws-s3-bucket_replicationdestination.go +++ b/cloudformation/s3/aws-s3-bucket_replicationdestination.go @@ -41,6 +41,9 @@ type Bucket_ReplicationDestination struct { // 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 diff --git a/cloudformation/s3/aws-s3-bucket_replicationrule.go b/cloudformation/s3/aws-s3-bucket_replicationrule.go index d91177f072..9c199e6ea9 100644 --- a/cloudformation/s3/aws-s3-bucket_replicationrule.go +++ b/cloudformation/s3/aws-s3-bucket_replicationrule.go @@ -41,6 +41,9 @@ type Bucket_ReplicationRule struct { // 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 diff --git a/cloudformation/s3/aws-s3-bucket_routingrule.go b/cloudformation/s3/aws-s3-bucket_routingrule.go index 27f220cb00..592820ea68 100644 --- a/cloudformation/s3/aws-s3-bucket_routingrule.go +++ b/cloudformation/s3/aws-s3-bucket_routingrule.go @@ -26,6 +26,9 @@ type Bucket_RoutingRule struct { // 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 diff --git a/cloudformation/s3/aws-s3-bucket_routingrulecondition.go b/cloudformation/s3/aws-s3-bucket_routingrulecondition.go index 19d5934324..2158c7db5b 100644 --- a/cloudformation/s3/aws-s3-bucket_routingrulecondition.go +++ b/cloudformation/s3/aws-s3-bucket_routingrulecondition.go @@ -26,6 +26,9 @@ type Bucket_RoutingRuleCondition struct { // 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 diff --git a/cloudformation/s3/aws-s3-bucket_rule.go b/cloudformation/s3/aws-s3-bucket_rule.go index d8fa98e904..3da198b227 100644 --- a/cloudformation/s3/aws-s3-bucket_rule.go +++ b/cloudformation/s3/aws-s3-bucket_rule.go @@ -76,6 +76,9 @@ type Bucket_Rule struct { // 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 diff --git a/cloudformation/s3/aws-s3-bucket_s3keyfilter.go b/cloudformation/s3/aws-s3-bucket_s3keyfilter.go index 86f294c524..e836aaf00c 100644 --- a/cloudformation/s3/aws-s3-bucket_s3keyfilter.go +++ b/cloudformation/s3/aws-s3-bucket_s3keyfilter.go @@ -21,6 +21,9 @@ type Bucket_S3KeyFilter struct { // 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 diff --git a/cloudformation/s3/aws-s3-bucket_serversideencryptionbydefault.go b/cloudformation/s3/aws-s3-bucket_serversideencryptionbydefault.go index a76bf995fc..df6d2e2e80 100644 --- a/cloudformation/s3/aws-s3-bucket_serversideencryptionbydefault.go +++ b/cloudformation/s3/aws-s3-bucket_serversideencryptionbydefault.go @@ -26,6 +26,9 @@ type Bucket_ServerSideEncryptionByDefault struct { // 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 diff --git a/cloudformation/s3/aws-s3-bucket_serversideencryptionrule.go b/cloudformation/s3/aws-s3-bucket_serversideencryptionrule.go index eac254f10a..2149209d2d 100644 --- a/cloudformation/s3/aws-s3-bucket_serversideencryptionrule.go +++ b/cloudformation/s3/aws-s3-bucket_serversideencryptionrule.go @@ -21,6 +21,9 @@ type Bucket_ServerSideEncryptionRule struct { // 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 diff --git a/cloudformation/s3/aws-s3-bucket_sourceselectioncriteria.go b/cloudformation/s3/aws-s3-bucket_sourceselectioncriteria.go index 509d02bbc0..b8331c0ca8 100644 --- a/cloudformation/s3/aws-s3-bucket_sourceselectioncriteria.go +++ b/cloudformation/s3/aws-s3-bucket_sourceselectioncriteria.go @@ -21,6 +21,9 @@ type Bucket_SourceSelectionCriteria struct { // 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 diff --git a/cloudformation/s3/aws-s3-bucket_ssekmsencryptedobjects.go b/cloudformation/s3/aws-s3-bucket_ssekmsencryptedobjects.go index 93ad068275..e1bd0d3190 100644 --- a/cloudformation/s3/aws-s3-bucket_ssekmsencryptedobjects.go +++ b/cloudformation/s3/aws-s3-bucket_ssekmsencryptedobjects.go @@ -21,6 +21,9 @@ type Bucket_SseKmsEncryptedObjects struct { // 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 diff --git a/cloudformation/s3/aws-s3-bucket_storageclassanalysis.go b/cloudformation/s3/aws-s3-bucket_storageclassanalysis.go index c67f43b417..9ba42d9d22 100644 --- a/cloudformation/s3/aws-s3-bucket_storageclassanalysis.go +++ b/cloudformation/s3/aws-s3-bucket_storageclassanalysis.go @@ -21,6 +21,9 @@ type Bucket_StorageClassAnalysis struct { // 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 diff --git a/cloudformation/s3/aws-s3-bucket_tagfilter.go b/cloudformation/s3/aws-s3-bucket_tagfilter.go index 9e2c0c77d5..d6e47bc77b 100644 --- a/cloudformation/s3/aws-s3-bucket_tagfilter.go +++ b/cloudformation/s3/aws-s3-bucket_tagfilter.go @@ -26,6 +26,9 @@ type Bucket_TagFilter struct { // 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 diff --git a/cloudformation/s3/aws-s3-bucket_topicconfiguration.go b/cloudformation/s3/aws-s3-bucket_topicconfiguration.go index 67e3a3c7c4..b46043f8cf 100644 --- a/cloudformation/s3/aws-s3-bucket_topicconfiguration.go +++ b/cloudformation/s3/aws-s3-bucket_topicconfiguration.go @@ -31,6 +31,9 @@ type Bucket_TopicConfiguration struct { // 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 diff --git a/cloudformation/s3/aws-s3-bucket_transition.go b/cloudformation/s3/aws-s3-bucket_transition.go index 7f422ec171..26e3155a7c 100644 --- a/cloudformation/s3/aws-s3-bucket_transition.go +++ b/cloudformation/s3/aws-s3-bucket_transition.go @@ -31,6 +31,9 @@ type Bucket_Transition struct { // 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 diff --git a/cloudformation/s3/aws-s3-bucket_versioningconfiguration.go b/cloudformation/s3/aws-s3-bucket_versioningconfiguration.go index ac74bf428b..3215d8b0a1 100644 --- a/cloudformation/s3/aws-s3-bucket_versioningconfiguration.go +++ b/cloudformation/s3/aws-s3-bucket_versioningconfiguration.go @@ -21,6 +21,9 @@ type Bucket_VersioningConfiguration struct { // 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 diff --git a/cloudformation/s3/aws-s3-bucket_websiteconfiguration.go b/cloudformation/s3/aws-s3-bucket_websiteconfiguration.go index d8a2deda7d..19f0ded73a 100644 --- a/cloudformation/s3/aws-s3-bucket_websiteconfiguration.go +++ b/cloudformation/s3/aws-s3-bucket_websiteconfiguration.go @@ -36,6 +36,9 @@ type Bucket_WebsiteConfiguration struct { // 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 diff --git a/cloudformation/s3/aws-s3-bucketpolicy.go b/cloudformation/s3/aws-s3-bucketpolicy.go index 32fc3c20b3..e037818441 100644 --- a/cloudformation/s3/aws-s3-bucketpolicy.go +++ b/cloudformation/s3/aws-s3-bucketpolicy.go @@ -30,6 +30,9 @@ type BucketPolicy struct { // 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 @@ -47,12 +50,14 @@ func (r BucketPolicy) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -66,6 +71,7 @@ func (r *BucketPolicy) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -89,5 +95,8 @@ func (r *BucketPolicy) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/sagemaker/aws-sagemaker-coderepository.go b/cloudformation/sagemaker/aws-sagemaker-coderepository.go index 4e253fbe83..57a39c6b3a 100644 --- a/cloudformation/sagemaker/aws-sagemaker-coderepository.go +++ b/cloudformation/sagemaker/aws-sagemaker-coderepository.go @@ -30,6 +30,9 @@ type CodeRepository struct { // 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 @@ -47,12 +50,14 @@ func (r CodeRepository) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -66,6 +71,7 @@ func (r *CodeRepository) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -89,5 +95,8 @@ func (r *CodeRepository) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/sagemaker/aws-sagemaker-coderepository_gitconfig.go b/cloudformation/sagemaker/aws-sagemaker-coderepository_gitconfig.go index 41d39cc066..b6af74c9f6 100644 --- a/cloudformation/sagemaker/aws-sagemaker-coderepository_gitconfig.go +++ b/cloudformation/sagemaker/aws-sagemaker-coderepository_gitconfig.go @@ -31,6 +31,9 @@ type CodeRepository_GitConfig struct { // 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 diff --git a/cloudformation/sagemaker/aws-sagemaker-endpoint.go b/cloudformation/sagemaker/aws-sagemaker-endpoint.go index d9e70e1f07..e92db6bf6b 100644 --- a/cloudformation/sagemaker/aws-sagemaker-endpoint.go +++ b/cloudformation/sagemaker/aws-sagemaker-endpoint.go @@ -46,6 +46,9 @@ type Endpoint struct { // 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 @@ -63,12 +66,14 @@ func (r Endpoint) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -82,6 +87,7 @@ func (r *Endpoint) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -105,5 +111,8 @@ func (r *Endpoint) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/sagemaker/aws-sagemaker-endpoint_variantproperty.go b/cloudformation/sagemaker/aws-sagemaker-endpoint_variantproperty.go index 068dbc27a3..66ade52f8f 100644 --- a/cloudformation/sagemaker/aws-sagemaker-endpoint_variantproperty.go +++ b/cloudformation/sagemaker/aws-sagemaker-endpoint_variantproperty.go @@ -21,6 +21,9 @@ type Endpoint_VariantProperty struct { // 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 diff --git a/cloudformation/sagemaker/aws-sagemaker-endpointconfig.go b/cloudformation/sagemaker/aws-sagemaker-endpointconfig.go index 6509735f5b..b012c342b3 100644 --- a/cloudformation/sagemaker/aws-sagemaker-endpointconfig.go +++ b/cloudformation/sagemaker/aws-sagemaker-endpointconfig.go @@ -41,6 +41,9 @@ type EndpointConfig struct { // 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 @@ -58,12 +61,14 @@ func (r EndpointConfig) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -77,6 +82,7 @@ func (r *EndpointConfig) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -100,5 +106,8 @@ func (r *EndpointConfig) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/sagemaker/aws-sagemaker-endpointconfig_productionvariant.go b/cloudformation/sagemaker/aws-sagemaker-endpointconfig_productionvariant.go index af1a62f2a9..80c24e455b 100644 --- a/cloudformation/sagemaker/aws-sagemaker-endpointconfig_productionvariant.go +++ b/cloudformation/sagemaker/aws-sagemaker-endpointconfig_productionvariant.go @@ -46,6 +46,9 @@ type EndpointConfig_ProductionVariant struct { // 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 diff --git a/cloudformation/sagemaker/aws-sagemaker-model.go b/cloudformation/sagemaker/aws-sagemaker-model.go index 79d875c3b6..601324b1dd 100644 --- a/cloudformation/sagemaker/aws-sagemaker-model.go +++ b/cloudformation/sagemaker/aws-sagemaker-model.go @@ -51,6 +51,9 @@ type Model struct { // 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 @@ -68,12 +71,14 @@ func (r Model) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -87,6 +92,7 @@ func (r *Model) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -110,5 +116,8 @@ func (r *Model) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/sagemaker/aws-sagemaker-model_containerdefinition.go b/cloudformation/sagemaker/aws-sagemaker-model_containerdefinition.go index 5c3f8da513..39f56d1724 100644 --- a/cloudformation/sagemaker/aws-sagemaker-model_containerdefinition.go +++ b/cloudformation/sagemaker/aws-sagemaker-model_containerdefinition.go @@ -23,6 +23,11 @@ type Model_ContainerDefinition struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-model-containerdefinition.html#cfn-sagemaker-model-containerdefinition-image Image string `json:"Image,omitempty"` + // Mode AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-model-containerdefinition.html#cfn-sagemaker-model-containerdefinition-mode + Mode string `json:"Mode,omitempty"` + // ModelDataUrl AWS CloudFormation Property // Required: false // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-model-containerdefinition.html#cfn-sagemaker-model-containerdefinition-modeldataurl @@ -36,6 +41,9 @@ type Model_ContainerDefinition struct { // 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 diff --git a/cloudformation/sagemaker/aws-sagemaker-model_vpcconfig.go b/cloudformation/sagemaker/aws-sagemaker-model_vpcconfig.go index 7c9fad48c0..dcf00c99eb 100644 --- a/cloudformation/sagemaker/aws-sagemaker-model_vpcconfig.go +++ b/cloudformation/sagemaker/aws-sagemaker-model_vpcconfig.go @@ -26,6 +26,9 @@ type Model_VpcConfig struct { // 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 diff --git a/cloudformation/sagemaker/aws-sagemaker-notebookinstance.go b/cloudformation/sagemaker/aws-sagemaker-notebookinstance.go index 522425bbbe..e28133613d 100644 --- a/cloudformation/sagemaker/aws-sagemaker-notebookinstance.go +++ b/cloudformation/sagemaker/aws-sagemaker-notebookinstance.go @@ -91,6 +91,9 @@ type NotebookInstance struct { // 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 @@ -108,12 +111,14 @@ func (r NotebookInstance) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -127,6 +132,7 @@ func (r *NotebookInstance) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -150,5 +156,8 @@ func (r *NotebookInstance) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/sagemaker/aws-sagemaker-notebookinstancelifecycleconfig.go b/cloudformation/sagemaker/aws-sagemaker-notebookinstancelifecycleconfig.go index dc9cc18c06..0924152ecf 100644 --- a/cloudformation/sagemaker/aws-sagemaker-notebookinstancelifecycleconfig.go +++ b/cloudformation/sagemaker/aws-sagemaker-notebookinstancelifecycleconfig.go @@ -35,6 +35,9 @@ type NotebookInstanceLifecycleConfig struct { // 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 @@ -52,12 +55,14 @@ func (r NotebookInstanceLifecycleConfig) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -71,6 +76,7 @@ func (r *NotebookInstanceLifecycleConfig) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -94,5 +100,8 @@ func (r *NotebookInstanceLifecycleConfig) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/sagemaker/aws-sagemaker-notebookinstancelifecycleconfig_notebookinstancelifecyclehook.go b/cloudformation/sagemaker/aws-sagemaker-notebookinstancelifecycleconfig_notebookinstancelifecyclehook.go index 9598ceb996..9f0f364928 100644 --- a/cloudformation/sagemaker/aws-sagemaker-notebookinstancelifecycleconfig_notebookinstancelifecyclehook.go +++ b/cloudformation/sagemaker/aws-sagemaker-notebookinstancelifecycleconfig_notebookinstancelifecyclehook.go @@ -21,6 +21,9 @@ type NotebookInstanceLifecycleConfig_NotebookInstanceLifecycleHook struct { // 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 diff --git a/cloudformation/sagemaker/aws-sagemaker-workteam.go b/cloudformation/sagemaker/aws-sagemaker-workteam.go index 7844e314a6..de2ddb7dac 100644 --- a/cloudformation/sagemaker/aws-sagemaker-workteam.go +++ b/cloudformation/sagemaker/aws-sagemaker-workteam.go @@ -46,6 +46,9 @@ type Workteam struct { // 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 @@ -63,12 +66,14 @@ func (r Workteam) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -82,6 +87,7 @@ func (r *Workteam) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -105,5 +111,8 @@ func (r *Workteam) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/sagemaker/aws-sagemaker-workteam_cognitomemberdefinition.go b/cloudformation/sagemaker/aws-sagemaker-workteam_cognitomemberdefinition.go index b1495d6e0c..606b670444 100644 --- a/cloudformation/sagemaker/aws-sagemaker-workteam_cognitomemberdefinition.go +++ b/cloudformation/sagemaker/aws-sagemaker-workteam_cognitomemberdefinition.go @@ -31,6 +31,9 @@ type Workteam_CognitoMemberDefinition struct { // 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 diff --git a/cloudformation/sagemaker/aws-sagemaker-workteam_memberdefinition.go b/cloudformation/sagemaker/aws-sagemaker-workteam_memberdefinition.go index 3b0e017e7b..be47c3cb10 100644 --- a/cloudformation/sagemaker/aws-sagemaker-workteam_memberdefinition.go +++ b/cloudformation/sagemaker/aws-sagemaker-workteam_memberdefinition.go @@ -21,6 +21,9 @@ type Workteam_MemberDefinition struct { // 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 diff --git a/cloudformation/sagemaker/aws-sagemaker-workteam_notificationconfiguration.go b/cloudformation/sagemaker/aws-sagemaker-workteam_notificationconfiguration.go index a84e3acff4..490ab53555 100644 --- a/cloudformation/sagemaker/aws-sagemaker-workteam_notificationconfiguration.go +++ b/cloudformation/sagemaker/aws-sagemaker-workteam_notificationconfiguration.go @@ -21,6 +21,9 @@ type Workteam_NotificationConfiguration struct { // 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 diff --git a/cloudformation/sdb/aws-sdb-domain.go b/cloudformation/sdb/aws-sdb-domain.go index e444015db8..28b2063948 100644 --- a/cloudformation/sdb/aws-sdb-domain.go +++ b/cloudformation/sdb/aws-sdb-domain.go @@ -25,6 +25,9 @@ type Domain struct { // 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 @@ -42,12 +45,14 @@ func (r Domain) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -61,6 +66,7 @@ func (r *Domain) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -84,5 +90,8 @@ func (r *Domain) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/secretsmanager/aws-secretsmanager-resourcepolicy.go b/cloudformation/secretsmanager/aws-secretsmanager-resourcepolicy.go index dd345771c3..11273c6c11 100644 --- a/cloudformation/secretsmanager/aws-secretsmanager-resourcepolicy.go +++ b/cloudformation/secretsmanager/aws-secretsmanager-resourcepolicy.go @@ -30,6 +30,9 @@ type ResourcePolicy struct { // 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 @@ -47,12 +50,14 @@ func (r ResourcePolicy) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -66,6 +71,7 @@ func (r *ResourcePolicy) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -89,5 +95,8 @@ func (r *ResourcePolicy) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/secretsmanager/aws-secretsmanager-rotationschedule.go b/cloudformation/secretsmanager/aws-secretsmanager-rotationschedule.go index f8aa6468fc..3e1783f40c 100644 --- a/cloudformation/secretsmanager/aws-secretsmanager-rotationschedule.go +++ b/cloudformation/secretsmanager/aws-secretsmanager-rotationschedule.go @@ -35,6 +35,9 @@ type RotationSchedule struct { // 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 @@ -52,12 +55,14 @@ func (r RotationSchedule) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -71,6 +76,7 @@ func (r *RotationSchedule) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -94,5 +100,8 @@ func (r *RotationSchedule) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/secretsmanager/aws-secretsmanager-rotationschedule_rotationrules.go b/cloudformation/secretsmanager/aws-secretsmanager-rotationschedule_rotationrules.go index e090637784..fac1841548 100644 --- a/cloudformation/secretsmanager/aws-secretsmanager-rotationschedule_rotationrules.go +++ b/cloudformation/secretsmanager/aws-secretsmanager-rotationschedule_rotationrules.go @@ -21,6 +21,9 @@ type RotationSchedule_RotationRules struct { // 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 diff --git a/cloudformation/secretsmanager/aws-secretsmanager-secret.go b/cloudformation/secretsmanager/aws-secretsmanager-secret.go index a5b23b6cb2..a76953e233 100644 --- a/cloudformation/secretsmanager/aws-secretsmanager-secret.go +++ b/cloudformation/secretsmanager/aws-secretsmanager-secret.go @@ -51,6 +51,9 @@ type Secret struct { // 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 @@ -68,12 +71,14 @@ func (r Secret) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -87,6 +92,7 @@ func (r *Secret) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -110,5 +116,8 @@ func (r *Secret) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/secretsmanager/aws-secretsmanager-secret_generatesecretstring.go b/cloudformation/secretsmanager/aws-secretsmanager-secret_generatesecretstring.go index d95b48b86d..c97eb7f07b 100644 --- a/cloudformation/secretsmanager/aws-secretsmanager-secret_generatesecretstring.go +++ b/cloudformation/secretsmanager/aws-secretsmanager-secret_generatesecretstring.go @@ -66,6 +66,9 @@ type Secret_GenerateSecretString struct { // 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 diff --git a/cloudformation/secretsmanager/aws-secretsmanager-secrettargetattachment.go b/cloudformation/secretsmanager/aws-secretsmanager-secrettargetattachment.go index 6d7f0d772b..c5a2ddef16 100644 --- a/cloudformation/secretsmanager/aws-secretsmanager-secrettargetattachment.go +++ b/cloudformation/secretsmanager/aws-secretsmanager-secrettargetattachment.go @@ -35,6 +35,9 @@ type SecretTargetAttachment struct { // 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 @@ -52,12 +55,14 @@ func (r SecretTargetAttachment) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -71,6 +76,7 @@ func (r *SecretTargetAttachment) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -94,5 +100,8 @@ func (r *SecretTargetAttachment) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/securityhub/aws-securityhub-hub.go b/cloudformation/securityhub/aws-securityhub-hub.go index 3398a55c34..7cf2394fbd 100644 --- a/cloudformation/securityhub/aws-securityhub-hub.go +++ b/cloudformation/securityhub/aws-securityhub-hub.go @@ -25,6 +25,9 @@ type Hub struct { // 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 @@ -42,12 +45,14 @@ func (r Hub) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -61,6 +66,7 @@ func (r *Hub) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -84,5 +90,8 @@ func (r *Hub) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/serverless/aws-serverless-api.go b/cloudformation/serverless/aws-serverless-api.go index d974e895b1..0c433a4c51 100644 --- a/cloudformation/serverless/aws-serverless-api.go +++ b/cloudformation/serverless/aws-serverless-api.go @@ -90,6 +90,9 @@ type Api struct { // 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 @@ -107,12 +110,14 @@ func (r Api) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -126,6 +131,7 @@ func (r *Api) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -149,5 +155,8 @@ func (r *Api) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/serverless/aws-serverless-api_accesslogsetting.go b/cloudformation/serverless/aws-serverless-api_accesslogsetting.go index 6d046ab905..756e937891 100644 --- a/cloudformation/serverless/aws-serverless-api_accesslogsetting.go +++ b/cloudformation/serverless/aws-serverless-api_accesslogsetting.go @@ -26,6 +26,9 @@ type Api_AccessLogSetting struct { // 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 diff --git a/cloudformation/serverless/aws-serverless-api_auth.go b/cloudformation/serverless/aws-serverless-api_auth.go index 422c915714..f6473fd066 100644 --- a/cloudformation/serverless/aws-serverless-api_auth.go +++ b/cloudformation/serverless/aws-serverless-api_auth.go @@ -26,6 +26,9 @@ type Api_Auth struct { // 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 diff --git a/cloudformation/serverless/aws-serverless-api_corsconfiguration.go b/cloudformation/serverless/aws-serverless-api_corsconfiguration.go index bfdb808eef..f0ba14a64a 100644 --- a/cloudformation/serverless/aws-serverless-api_corsconfiguration.go +++ b/cloudformation/serverless/aws-serverless-api_corsconfiguration.go @@ -41,6 +41,9 @@ type Api_CorsConfiguration struct { // 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 diff --git a/cloudformation/serverless/aws-serverless-api_s3location.go b/cloudformation/serverless/aws-serverless-api_s3location.go index 45cebddb02..a3060d101d 100644 --- a/cloudformation/serverless/aws-serverless-api_s3location.go +++ b/cloudformation/serverless/aws-serverless-api_s3location.go @@ -31,6 +31,9 @@ type Api_S3Location struct { // 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 diff --git a/cloudformation/serverless/aws-serverless-application.go b/cloudformation/serverless/aws-serverless-application.go index 91f3e23ea2..ef18477d25 100644 --- a/cloudformation/serverless/aws-serverless-application.go +++ b/cloudformation/serverless/aws-serverless-application.go @@ -45,6 +45,9 @@ type Application struct { // 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 @@ -62,12 +65,14 @@ func (r Application) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -81,6 +86,7 @@ func (r *Application) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -104,5 +110,8 @@ func (r *Application) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/serverless/aws-serverless-application_applicationlocation.go b/cloudformation/serverless/aws-serverless-application_applicationlocation.go index 1ff11a1a02..d95fec9dce 100644 --- a/cloudformation/serverless/aws-serverless-application_applicationlocation.go +++ b/cloudformation/serverless/aws-serverless-application_applicationlocation.go @@ -26,6 +26,9 @@ type Application_ApplicationLocation struct { // 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 diff --git a/cloudformation/serverless/aws-serverless-function.go b/cloudformation/serverless/aws-serverless-function.go index de230103fb..285c0136b2 100644 --- a/cloudformation/serverless/aws-serverless-function.go +++ b/cloudformation/serverless/aws-serverless-function.go @@ -125,6 +125,9 @@ type Function struct { // 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 @@ -142,12 +145,14 @@ func (r Function) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -161,6 +166,7 @@ func (r *Function) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -184,5 +190,8 @@ func (r *Function) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/serverless/aws-serverless-function_alexaskillevent.go b/cloudformation/serverless/aws-serverless-function_alexaskillevent.go index 390208bfca..2a753e5b3f 100644 --- a/cloudformation/serverless/aws-serverless-function_alexaskillevent.go +++ b/cloudformation/serverless/aws-serverless-function_alexaskillevent.go @@ -21,6 +21,9 @@ type Function_AlexaSkillEvent struct { // 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 diff --git a/cloudformation/serverless/aws-serverless-function_apievent.go b/cloudformation/serverless/aws-serverless-function_apievent.go index 3f0d3d447c..db301401ff 100644 --- a/cloudformation/serverless/aws-serverless-function_apievent.go +++ b/cloudformation/serverless/aws-serverless-function_apievent.go @@ -31,6 +31,9 @@ type Function_ApiEvent struct { // 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 diff --git a/cloudformation/serverless/aws-serverless-function_bucketsampt.go b/cloudformation/serverless/aws-serverless-function_bucketsampt.go index e85518c97b..c5a09a96cb 100644 --- a/cloudformation/serverless/aws-serverless-function_bucketsampt.go +++ b/cloudformation/serverless/aws-serverless-function_bucketsampt.go @@ -21,6 +21,9 @@ type Function_BucketSAMPT struct { // 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 diff --git a/cloudformation/serverless/aws-serverless-function_cloudwatcheventevent.go b/cloudformation/serverless/aws-serverless-function_cloudwatcheventevent.go index 18e840043e..7af6f185c7 100644 --- a/cloudformation/serverless/aws-serverless-function_cloudwatcheventevent.go +++ b/cloudformation/serverless/aws-serverless-function_cloudwatcheventevent.go @@ -31,6 +31,9 @@ type Function_CloudWatchEventEvent struct { // 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 diff --git a/cloudformation/serverless/aws-serverless-function_collectionsampt.go b/cloudformation/serverless/aws-serverless-function_collectionsampt.go index f3a9caef8b..1909d26413 100644 --- a/cloudformation/serverless/aws-serverless-function_collectionsampt.go +++ b/cloudformation/serverless/aws-serverless-function_collectionsampt.go @@ -21,6 +21,9 @@ type Function_CollectionSAMPT struct { // 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 diff --git a/cloudformation/serverless/aws-serverless-function_deadletterqueue.go b/cloudformation/serverless/aws-serverless-function_deadletterqueue.go index b94d0f0a8d..c6cef88a5c 100644 --- a/cloudformation/serverless/aws-serverless-function_deadletterqueue.go +++ b/cloudformation/serverless/aws-serverless-function_deadletterqueue.go @@ -26,6 +26,9 @@ type Function_DeadLetterQueue struct { // 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 diff --git a/cloudformation/serverless/aws-serverless-function_deploymentpreference.go b/cloudformation/serverless/aws-serverless-function_deploymentpreference.go index 21a729929a..dbbb173343 100644 --- a/cloudformation/serverless/aws-serverless-function_deploymentpreference.go +++ b/cloudformation/serverless/aws-serverless-function_deploymentpreference.go @@ -41,6 +41,9 @@ type Function_DeploymentPreference struct { // 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 diff --git a/cloudformation/serverless/aws-serverless-function_domainsampt.go b/cloudformation/serverless/aws-serverless-function_domainsampt.go index 8aa3a614a8..8935502a60 100644 --- a/cloudformation/serverless/aws-serverless-function_domainsampt.go +++ b/cloudformation/serverless/aws-serverless-function_domainsampt.go @@ -21,6 +21,9 @@ type Function_DomainSAMPT struct { // 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 diff --git a/cloudformation/serverless/aws-serverless-function_dynamodbevent.go b/cloudformation/serverless/aws-serverless-function_dynamodbevent.go index 5dca4b136e..fc2e53c4da 100644 --- a/cloudformation/serverless/aws-serverless-function_dynamodbevent.go +++ b/cloudformation/serverless/aws-serverless-function_dynamodbevent.go @@ -36,6 +36,9 @@ type Function_DynamoDBEvent struct { // 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 diff --git a/cloudformation/serverless/aws-serverless-function_emptysampt.go b/cloudformation/serverless/aws-serverless-function_emptysampt.go index e0d897c37b..f920ba2284 100644 --- a/cloudformation/serverless/aws-serverless-function_emptysampt.go +++ b/cloudformation/serverless/aws-serverless-function_emptysampt.go @@ -16,6 +16,9 @@ type Function_EmptySAMPT struct { // 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 diff --git a/cloudformation/serverless/aws-serverless-function_eventsource.go b/cloudformation/serverless/aws-serverless-function_eventsource.go index 153253a216..c7bf99b4ef 100644 --- a/cloudformation/serverless/aws-serverless-function_eventsource.go +++ b/cloudformation/serverless/aws-serverless-function_eventsource.go @@ -26,6 +26,9 @@ type Function_EventSource struct { // 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 diff --git a/cloudformation/serverless/aws-serverless-function_functionenvironment.go b/cloudformation/serverless/aws-serverless-function_functionenvironment.go index 44f75c960d..a5f492ed8c 100644 --- a/cloudformation/serverless/aws-serverless-function_functionenvironment.go +++ b/cloudformation/serverless/aws-serverless-function_functionenvironment.go @@ -21,6 +21,9 @@ type Function_FunctionEnvironment struct { // 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 diff --git a/cloudformation/serverless/aws-serverless-function_functionsampt.go b/cloudformation/serverless/aws-serverless-function_functionsampt.go index 7593bb8121..99ee566c80 100644 --- a/cloudformation/serverless/aws-serverless-function_functionsampt.go +++ b/cloudformation/serverless/aws-serverless-function_functionsampt.go @@ -21,6 +21,9 @@ type Function_FunctionSAMPT struct { // 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 diff --git a/cloudformation/serverless/aws-serverless-function_iampolicydocument.go b/cloudformation/serverless/aws-serverless-function_iampolicydocument.go index dfadb900e6..6c0b57eb8c 100644 --- a/cloudformation/serverless/aws-serverless-function_iampolicydocument.go +++ b/cloudformation/serverless/aws-serverless-function_iampolicydocument.go @@ -21,6 +21,9 @@ type Function_IAMPolicyDocument struct { // 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 diff --git a/cloudformation/serverless/aws-serverless-function_identitysampt.go b/cloudformation/serverless/aws-serverless-function_identitysampt.go index 842ba6ccee..5d5a513f15 100644 --- a/cloudformation/serverless/aws-serverless-function_identitysampt.go +++ b/cloudformation/serverless/aws-serverless-function_identitysampt.go @@ -21,6 +21,9 @@ type Function_IdentitySAMPT struct { // 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 diff --git a/cloudformation/serverless/aws-serverless-function_iotruleevent.go b/cloudformation/serverless/aws-serverless-function_iotruleevent.go index 1d6f07cb4d..2824811bce 100644 --- a/cloudformation/serverless/aws-serverless-function_iotruleevent.go +++ b/cloudformation/serverless/aws-serverless-function_iotruleevent.go @@ -26,6 +26,9 @@ type Function_IoTRuleEvent struct { // 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 diff --git a/cloudformation/serverless/aws-serverless-function_keysampt.go b/cloudformation/serverless/aws-serverless-function_keysampt.go index 5e1dc4c247..601c6acd25 100644 --- a/cloudformation/serverless/aws-serverless-function_keysampt.go +++ b/cloudformation/serverless/aws-serverless-function_keysampt.go @@ -21,6 +21,9 @@ type Function_KeySAMPT struct { // 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 diff --git a/cloudformation/serverless/aws-serverless-function_kinesisevent.go b/cloudformation/serverless/aws-serverless-function_kinesisevent.go index be4d396ca2..88e1b0fd48 100644 --- a/cloudformation/serverless/aws-serverless-function_kinesisevent.go +++ b/cloudformation/serverless/aws-serverless-function_kinesisevent.go @@ -36,6 +36,9 @@ type Function_KinesisEvent struct { // 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 diff --git a/cloudformation/serverless/aws-serverless-function_loggroupsampt.go b/cloudformation/serverless/aws-serverless-function_loggroupsampt.go index c6c0f40b9e..78f4b79298 100644 --- a/cloudformation/serverless/aws-serverless-function_loggroupsampt.go +++ b/cloudformation/serverless/aws-serverless-function_loggroupsampt.go @@ -21,6 +21,9 @@ type Function_LogGroupSAMPT struct { // 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 diff --git a/cloudformation/serverless/aws-serverless-function_queuesampt.go b/cloudformation/serverless/aws-serverless-function_queuesampt.go index f458e44f83..2c2c87afab 100644 --- a/cloudformation/serverless/aws-serverless-function_queuesampt.go +++ b/cloudformation/serverless/aws-serverless-function_queuesampt.go @@ -21,6 +21,9 @@ type Function_QueueSAMPT struct { // 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 diff --git a/cloudformation/serverless/aws-serverless-function_s3event.go b/cloudformation/serverless/aws-serverless-function_s3event.go index 89acd18631..31764f9552 100644 --- a/cloudformation/serverless/aws-serverless-function_s3event.go +++ b/cloudformation/serverless/aws-serverless-function_s3event.go @@ -31,6 +31,9 @@ type Function_S3Event struct { // 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 diff --git a/cloudformation/serverless/aws-serverless-function_s3keyfilter.go b/cloudformation/serverless/aws-serverless-function_s3keyfilter.go index 6594203065..0273a099de 100644 --- a/cloudformation/serverless/aws-serverless-function_s3keyfilter.go +++ b/cloudformation/serverless/aws-serverless-function_s3keyfilter.go @@ -21,6 +21,9 @@ type Function_S3KeyFilter struct { // 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 diff --git a/cloudformation/serverless/aws-serverless-function_s3keyfilterrule.go b/cloudformation/serverless/aws-serverless-function_s3keyfilterrule.go index 463164ea68..8bd05cb15d 100644 --- a/cloudformation/serverless/aws-serverless-function_s3keyfilterrule.go +++ b/cloudformation/serverless/aws-serverless-function_s3keyfilterrule.go @@ -26,6 +26,9 @@ type Function_S3KeyFilterRule struct { // 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 diff --git a/cloudformation/serverless/aws-serverless-function_s3location.go b/cloudformation/serverless/aws-serverless-function_s3location.go index c75339c6ac..b617b639ac 100644 --- a/cloudformation/serverless/aws-serverless-function_s3location.go +++ b/cloudformation/serverless/aws-serverless-function_s3location.go @@ -31,6 +31,9 @@ type Function_S3Location struct { // 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 diff --git a/cloudformation/serverless/aws-serverless-function_s3notificationfilter.go b/cloudformation/serverless/aws-serverless-function_s3notificationfilter.go index fdada3e012..fa6f495d64 100644 --- a/cloudformation/serverless/aws-serverless-function_s3notificationfilter.go +++ b/cloudformation/serverless/aws-serverless-function_s3notificationfilter.go @@ -21,6 +21,9 @@ type Function_S3NotificationFilter struct { // 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 diff --git a/cloudformation/serverless/aws-serverless-function_sampolicytemplate.go b/cloudformation/serverless/aws-serverless-function_sampolicytemplate.go index 8b744f229b..08b295561f 100644 --- a/cloudformation/serverless/aws-serverless-function_sampolicytemplate.go +++ b/cloudformation/serverless/aws-serverless-function_sampolicytemplate.go @@ -166,6 +166,9 @@ type Function_SAMPolicyTemplate struct { // 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 diff --git a/cloudformation/serverless/aws-serverless-function_scheduleevent.go b/cloudformation/serverless/aws-serverless-function_scheduleevent.go index 4778bd314e..3286df16fb 100644 --- a/cloudformation/serverless/aws-serverless-function_scheduleevent.go +++ b/cloudformation/serverless/aws-serverless-function_scheduleevent.go @@ -26,6 +26,9 @@ type Function_ScheduleEvent struct { // 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 diff --git a/cloudformation/serverless/aws-serverless-function_snsevent.go b/cloudformation/serverless/aws-serverless-function_snsevent.go index 9ee9c78c7a..3a022f932f 100644 --- a/cloudformation/serverless/aws-serverless-function_snsevent.go +++ b/cloudformation/serverless/aws-serverless-function_snsevent.go @@ -21,6 +21,9 @@ type Function_SNSEvent struct { // 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 diff --git a/cloudformation/serverless/aws-serverless-function_sqsevent.go b/cloudformation/serverless/aws-serverless-function_sqsevent.go index c60cb86029..8f68e12e29 100644 --- a/cloudformation/serverless/aws-serverless-function_sqsevent.go +++ b/cloudformation/serverless/aws-serverless-function_sqsevent.go @@ -31,6 +31,9 @@ type Function_SQSEvent struct { // 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 diff --git a/cloudformation/serverless/aws-serverless-function_statemachinesampt.go b/cloudformation/serverless/aws-serverless-function_statemachinesampt.go index 9de8e5536b..095ca78e2d 100644 --- a/cloudformation/serverless/aws-serverless-function_statemachinesampt.go +++ b/cloudformation/serverless/aws-serverless-function_statemachinesampt.go @@ -21,6 +21,9 @@ type Function_StateMachineSAMPT struct { // 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 diff --git a/cloudformation/serverless/aws-serverless-function_streamsampt.go b/cloudformation/serverless/aws-serverless-function_streamsampt.go index 95e90c2a7a..cc89c7ff1e 100644 --- a/cloudformation/serverless/aws-serverless-function_streamsampt.go +++ b/cloudformation/serverless/aws-serverless-function_streamsampt.go @@ -21,6 +21,9 @@ type Function_StreamSAMPT struct { // 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 diff --git a/cloudformation/serverless/aws-serverless-function_tablesampt.go b/cloudformation/serverless/aws-serverless-function_tablesampt.go index a95a2673cb..78e61e8ce2 100644 --- a/cloudformation/serverless/aws-serverless-function_tablesampt.go +++ b/cloudformation/serverless/aws-serverless-function_tablesampt.go @@ -21,6 +21,9 @@ type Function_TableSAMPT struct { // 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 diff --git a/cloudformation/serverless/aws-serverless-function_tablestreamsampt.go b/cloudformation/serverless/aws-serverless-function_tablestreamsampt.go index a148576ad8..01352f6762 100644 --- a/cloudformation/serverless/aws-serverless-function_tablestreamsampt.go +++ b/cloudformation/serverless/aws-serverless-function_tablestreamsampt.go @@ -26,6 +26,9 @@ type Function_TableStreamSAMPT struct { // 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 diff --git a/cloudformation/serverless/aws-serverless-function_topicsampt.go b/cloudformation/serverless/aws-serverless-function_topicsampt.go index c33051ebc5..57b5a51ee5 100644 --- a/cloudformation/serverless/aws-serverless-function_topicsampt.go +++ b/cloudformation/serverless/aws-serverless-function_topicsampt.go @@ -21,6 +21,9 @@ type Function_TopicSAMPT struct { // 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 diff --git a/cloudformation/serverless/aws-serverless-function_vpcconfig.go b/cloudformation/serverless/aws-serverless-function_vpcconfig.go index e50656c0e6..1e7ba5b439 100644 --- a/cloudformation/serverless/aws-serverless-function_vpcconfig.go +++ b/cloudformation/serverless/aws-serverless-function_vpcconfig.go @@ -26,6 +26,9 @@ type Function_VpcConfig struct { // 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 diff --git a/cloudformation/serverless/aws-serverless-layerversion.go b/cloudformation/serverless/aws-serverless-layerversion.go index 223539a380..f1d820a8de 100644 --- a/cloudformation/serverless/aws-serverless-layerversion.go +++ b/cloudformation/serverless/aws-serverless-layerversion.go @@ -50,6 +50,9 @@ type LayerVersion struct { // 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 @@ -67,12 +70,14 @@ func (r LayerVersion) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -86,6 +91,7 @@ func (r *LayerVersion) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -109,5 +115,8 @@ func (r *LayerVersion) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/serverless/aws-serverless-simpletable.go b/cloudformation/serverless/aws-serverless-simpletable.go index 69ef57a593..41652502db 100644 --- a/cloudformation/serverless/aws-serverless-simpletable.go +++ b/cloudformation/serverless/aws-serverless-simpletable.go @@ -45,6 +45,9 @@ type SimpleTable struct { // 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 @@ -62,12 +65,14 @@ func (r SimpleTable) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -81,6 +86,7 @@ func (r *SimpleTable) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -104,5 +110,8 @@ func (r *SimpleTable) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/serverless/aws-serverless-simpletable_primarykey.go b/cloudformation/serverless/aws-serverless-simpletable_primarykey.go index 02aa88e66e..e5b438d1f5 100644 --- a/cloudformation/serverless/aws-serverless-simpletable_primarykey.go +++ b/cloudformation/serverless/aws-serverless-simpletable_primarykey.go @@ -26,6 +26,9 @@ type SimpleTable_PrimaryKey struct { // 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 diff --git a/cloudformation/serverless/aws-serverless-simpletable_provisionedthroughput.go b/cloudformation/serverless/aws-serverless-simpletable_provisionedthroughput.go index 2fbee04616..ee2bf04a78 100644 --- a/cloudformation/serverless/aws-serverless-simpletable_provisionedthroughput.go +++ b/cloudformation/serverless/aws-serverless-simpletable_provisionedthroughput.go @@ -26,6 +26,9 @@ type SimpleTable_ProvisionedThroughput struct { // 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 diff --git a/cloudformation/serverless/aws-serverless-simpletable_ssespecification.go b/cloudformation/serverless/aws-serverless-simpletable_ssespecification.go index 5b0887e2f8..22d3c0d937 100644 --- a/cloudformation/serverless/aws-serverless-simpletable_ssespecification.go +++ b/cloudformation/serverless/aws-serverless-simpletable_ssespecification.go @@ -21,6 +21,9 @@ type SimpleTable_SSESpecification struct { // 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 diff --git a/cloudformation/servicecatalog/aws-servicecatalog-acceptedportfolioshare.go b/cloudformation/servicecatalog/aws-servicecatalog-acceptedportfolioshare.go index fb6ce75db6..00441b619d 100644 --- a/cloudformation/servicecatalog/aws-servicecatalog-acceptedportfolioshare.go +++ b/cloudformation/servicecatalog/aws-servicecatalog-acceptedportfolioshare.go @@ -30,6 +30,9 @@ type AcceptedPortfolioShare struct { // 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 @@ -47,12 +50,14 @@ func (r AcceptedPortfolioShare) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -66,6 +71,7 @@ func (r *AcceptedPortfolioShare) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -89,5 +95,8 @@ func (r *AcceptedPortfolioShare) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/servicecatalog/aws-servicecatalog-cloudformationproduct.go b/cloudformation/servicecatalog/aws-servicecatalog-cloudformationproduct.go index a19e9408fa..ddddac9de8 100644 --- a/cloudformation/servicecatalog/aws-servicecatalog-cloudformationproduct.go +++ b/cloudformation/servicecatalog/aws-servicecatalog-cloudformationproduct.go @@ -71,6 +71,9 @@ type CloudFormationProduct struct { // 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 @@ -88,12 +91,14 @@ func (r CloudFormationProduct) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -107,6 +112,7 @@ func (r *CloudFormationProduct) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -130,5 +136,8 @@ func (r *CloudFormationProduct) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/servicecatalog/aws-servicecatalog-cloudformationproduct_provisioningartifactproperties.go b/cloudformation/servicecatalog/aws-servicecatalog-cloudformationproduct_provisioningartifactproperties.go index 93037a29e4..58772594b0 100644 --- a/cloudformation/servicecatalog/aws-servicecatalog-cloudformationproduct_provisioningartifactproperties.go +++ b/cloudformation/servicecatalog/aws-servicecatalog-cloudformationproduct_provisioningartifactproperties.go @@ -36,6 +36,9 @@ type CloudFormationProduct_ProvisioningArtifactProperties struct { // 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 diff --git a/cloudformation/servicecatalog/aws-servicecatalog-cloudformationprovisionedproduct.go b/cloudformation/servicecatalog/aws-servicecatalog-cloudformationprovisionedproduct.go index 95ce5181f4..18b904d2f7 100644 --- a/cloudformation/servicecatalog/aws-servicecatalog-cloudformationprovisionedproduct.go +++ b/cloudformation/servicecatalog/aws-servicecatalog-cloudformationprovisionedproduct.go @@ -76,6 +76,9 @@ type CloudFormationProvisionedProduct struct { // 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 @@ -93,12 +96,14 @@ func (r CloudFormationProvisionedProduct) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -112,6 +117,7 @@ func (r *CloudFormationProvisionedProduct) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -135,5 +141,8 @@ func (r *CloudFormationProvisionedProduct) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/servicecatalog/aws-servicecatalog-cloudformationprovisionedproduct_provisioningparameter.go b/cloudformation/servicecatalog/aws-servicecatalog-cloudformationprovisionedproduct_provisioningparameter.go index f51c559635..439fdf7a30 100644 --- a/cloudformation/servicecatalog/aws-servicecatalog-cloudformationprovisionedproduct_provisioningparameter.go +++ b/cloudformation/servicecatalog/aws-servicecatalog-cloudformationprovisionedproduct_provisioningparameter.go @@ -26,6 +26,9 @@ type CloudFormationProvisionedProduct_ProvisioningParameter struct { // 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 diff --git a/cloudformation/servicecatalog/aws-servicecatalog-cloudformationprovisionedproduct_provisioningpreferences.go b/cloudformation/servicecatalog/aws-servicecatalog-cloudformationprovisionedproduct_provisioningpreferences.go index 13b3ff8654..b903cc805e 100644 --- a/cloudformation/servicecatalog/aws-servicecatalog-cloudformationprovisionedproduct_provisioningpreferences.go +++ b/cloudformation/servicecatalog/aws-servicecatalog-cloudformationprovisionedproduct_provisioningpreferences.go @@ -51,6 +51,9 @@ type CloudFormationProvisionedProduct_ProvisioningPreferences struct { // 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 diff --git a/cloudformation/servicecatalog/aws-servicecatalog-launchnotificationconstraint.go b/cloudformation/servicecatalog/aws-servicecatalog-launchnotificationconstraint.go index aafa74ba4f..a917647cba 100644 --- a/cloudformation/servicecatalog/aws-servicecatalog-launchnotificationconstraint.go +++ b/cloudformation/servicecatalog/aws-servicecatalog-launchnotificationconstraint.go @@ -45,6 +45,9 @@ type LaunchNotificationConstraint struct { // 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 @@ -62,12 +65,14 @@ func (r LaunchNotificationConstraint) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -81,6 +86,7 @@ func (r *LaunchNotificationConstraint) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -104,5 +110,8 @@ func (r *LaunchNotificationConstraint) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/servicecatalog/aws-servicecatalog-launchroleconstraint.go b/cloudformation/servicecatalog/aws-servicecatalog-launchroleconstraint.go index 2fd064567f..ee11b7f22f 100644 --- a/cloudformation/servicecatalog/aws-servicecatalog-launchroleconstraint.go +++ b/cloudformation/servicecatalog/aws-servicecatalog-launchroleconstraint.go @@ -45,6 +45,9 @@ type LaunchRoleConstraint struct { // 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 @@ -62,12 +65,14 @@ func (r LaunchRoleConstraint) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -81,6 +86,7 @@ func (r *LaunchRoleConstraint) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -104,5 +110,8 @@ func (r *LaunchRoleConstraint) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/servicecatalog/aws-servicecatalog-launchtemplateconstraint.go b/cloudformation/servicecatalog/aws-servicecatalog-launchtemplateconstraint.go index 84d9b51e15..26edb75645 100644 --- a/cloudformation/servicecatalog/aws-servicecatalog-launchtemplateconstraint.go +++ b/cloudformation/servicecatalog/aws-servicecatalog-launchtemplateconstraint.go @@ -45,6 +45,9 @@ type LaunchTemplateConstraint struct { // 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 @@ -62,12 +65,14 @@ func (r LaunchTemplateConstraint) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -81,6 +86,7 @@ func (r *LaunchTemplateConstraint) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -104,5 +110,8 @@ func (r *LaunchTemplateConstraint) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/servicecatalog/aws-servicecatalog-portfolio.go b/cloudformation/servicecatalog/aws-servicecatalog-portfolio.go index 3d28f1d41d..0acada951b 100644 --- a/cloudformation/servicecatalog/aws-servicecatalog-portfolio.go +++ b/cloudformation/servicecatalog/aws-servicecatalog-portfolio.go @@ -46,6 +46,9 @@ type Portfolio struct { // 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 @@ -63,12 +66,14 @@ func (r Portfolio) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -82,6 +87,7 @@ func (r *Portfolio) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -105,5 +111,8 @@ func (r *Portfolio) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/servicecatalog/aws-servicecatalog-portfolioprincipalassociation.go b/cloudformation/servicecatalog/aws-servicecatalog-portfolioprincipalassociation.go index e14cb94387..794f04271c 100644 --- a/cloudformation/servicecatalog/aws-servicecatalog-portfolioprincipalassociation.go +++ b/cloudformation/servicecatalog/aws-servicecatalog-portfolioprincipalassociation.go @@ -40,6 +40,9 @@ type PortfolioPrincipalAssociation struct { // 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 @@ -57,12 +60,14 @@ func (r PortfolioPrincipalAssociation) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -76,6 +81,7 @@ func (r *PortfolioPrincipalAssociation) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -99,5 +105,8 @@ func (r *PortfolioPrincipalAssociation) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/servicecatalog/aws-servicecatalog-portfolioproductassociation.go b/cloudformation/servicecatalog/aws-servicecatalog-portfolioproductassociation.go index a00669802a..437f2ae12c 100644 --- a/cloudformation/servicecatalog/aws-servicecatalog-portfolioproductassociation.go +++ b/cloudformation/servicecatalog/aws-servicecatalog-portfolioproductassociation.go @@ -40,6 +40,9 @@ type PortfolioProductAssociation struct { // 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 @@ -57,12 +60,14 @@ func (r PortfolioProductAssociation) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -76,6 +81,7 @@ func (r *PortfolioProductAssociation) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -99,5 +105,8 @@ func (r *PortfolioProductAssociation) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/servicecatalog/aws-servicecatalog-portfolioshare.go b/cloudformation/servicecatalog/aws-servicecatalog-portfolioshare.go index f6bd242f4a..2f44e8dd13 100644 --- a/cloudformation/servicecatalog/aws-servicecatalog-portfolioshare.go +++ b/cloudformation/servicecatalog/aws-servicecatalog-portfolioshare.go @@ -35,6 +35,9 @@ type PortfolioShare struct { // 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 @@ -52,12 +55,14 @@ func (r PortfolioShare) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -71,6 +76,7 @@ func (r *PortfolioShare) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -94,5 +100,8 @@ func (r *PortfolioShare) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/servicecatalog/aws-servicecatalog-resourceupdateconstraint.go b/cloudformation/servicecatalog/aws-servicecatalog-resourceupdateconstraint.go index 00f506cd9b..cd4c07fed6 100644 --- a/cloudformation/servicecatalog/aws-servicecatalog-resourceupdateconstraint.go +++ b/cloudformation/servicecatalog/aws-servicecatalog-resourceupdateconstraint.go @@ -45,6 +45,9 @@ type ResourceUpdateConstraint struct { // 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 @@ -62,12 +65,14 @@ func (r ResourceUpdateConstraint) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -81,6 +86,7 @@ func (r *ResourceUpdateConstraint) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -104,5 +110,8 @@ func (r *ResourceUpdateConstraint) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/servicecatalog/aws-servicecatalog-stacksetconstraint.go b/cloudformation/servicecatalog/aws-servicecatalog-stacksetconstraint.go index 24c7ee97a2..81017cba5e 100644 --- a/cloudformation/servicecatalog/aws-servicecatalog-stacksetconstraint.go +++ b/cloudformation/servicecatalog/aws-servicecatalog-stacksetconstraint.go @@ -65,6 +65,9 @@ type StackSetConstraint struct { // 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 @@ -82,12 +85,14 @@ func (r StackSetConstraint) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -101,6 +106,7 @@ func (r *StackSetConstraint) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -124,5 +130,8 @@ func (r *StackSetConstraint) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/servicecatalog/aws-servicecatalog-tagoption.go b/cloudformation/servicecatalog/aws-servicecatalog-tagoption.go index 6ad3013e71..056f23bd1e 100644 --- a/cloudformation/servicecatalog/aws-servicecatalog-tagoption.go +++ b/cloudformation/servicecatalog/aws-servicecatalog-tagoption.go @@ -35,6 +35,9 @@ type TagOption struct { // 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 @@ -52,12 +55,14 @@ func (r TagOption) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -71,6 +76,7 @@ func (r *TagOption) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -94,5 +100,8 @@ func (r *TagOption) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/servicecatalog/aws-servicecatalog-tagoptionassociation.go b/cloudformation/servicecatalog/aws-servicecatalog-tagoptionassociation.go index d41bfcc2b6..45aee83460 100644 --- a/cloudformation/servicecatalog/aws-servicecatalog-tagoptionassociation.go +++ b/cloudformation/servicecatalog/aws-servicecatalog-tagoptionassociation.go @@ -30,6 +30,9 @@ type TagOptionAssociation struct { // 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 @@ -47,12 +50,14 @@ func (r TagOptionAssociation) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -66,6 +71,7 @@ func (r *TagOptionAssociation) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -89,5 +95,8 @@ func (r *TagOptionAssociation) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/servicediscovery/aws-servicediscovery-httpnamespace.go b/cloudformation/servicediscovery/aws-servicediscovery-httpnamespace.go index 4138ff4155..2feac121a8 100644 --- a/cloudformation/servicediscovery/aws-servicediscovery-httpnamespace.go +++ b/cloudformation/servicediscovery/aws-servicediscovery-httpnamespace.go @@ -30,6 +30,9 @@ type HttpNamespace struct { // 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 @@ -47,12 +50,14 @@ func (r HttpNamespace) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -66,6 +71,7 @@ func (r *HttpNamespace) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -89,5 +95,8 @@ func (r *HttpNamespace) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/servicediscovery/aws-servicediscovery-instance.go b/cloudformation/servicediscovery/aws-servicediscovery-instance.go index e698155dfe..0e02de76b8 100644 --- a/cloudformation/servicediscovery/aws-servicediscovery-instance.go +++ b/cloudformation/servicediscovery/aws-servicediscovery-instance.go @@ -35,6 +35,9 @@ type Instance struct { // 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 @@ -52,12 +55,14 @@ func (r Instance) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -71,6 +76,7 @@ func (r *Instance) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -94,5 +100,8 @@ func (r *Instance) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/servicediscovery/aws-servicediscovery-privatednsnamespace.go b/cloudformation/servicediscovery/aws-servicediscovery-privatednsnamespace.go index 6016e7d785..d4adb0f3d4 100644 --- a/cloudformation/servicediscovery/aws-servicediscovery-privatednsnamespace.go +++ b/cloudformation/servicediscovery/aws-servicediscovery-privatednsnamespace.go @@ -35,6 +35,9 @@ type PrivateDnsNamespace struct { // 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 @@ -52,12 +55,14 @@ func (r PrivateDnsNamespace) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -71,6 +76,7 @@ func (r *PrivateDnsNamespace) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -94,5 +100,8 @@ func (r *PrivateDnsNamespace) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/servicediscovery/aws-servicediscovery-publicdnsnamespace.go b/cloudformation/servicediscovery/aws-servicediscovery-publicdnsnamespace.go index e2b77fabc4..3f53cb7756 100644 --- a/cloudformation/servicediscovery/aws-servicediscovery-publicdnsnamespace.go +++ b/cloudformation/servicediscovery/aws-servicediscovery-publicdnsnamespace.go @@ -30,6 +30,9 @@ type PublicDnsNamespace struct { // 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 @@ -47,12 +50,14 @@ func (r PublicDnsNamespace) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -66,6 +71,7 @@ func (r *PublicDnsNamespace) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -89,5 +95,8 @@ func (r *PublicDnsNamespace) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/servicediscovery/aws-servicediscovery-service.go b/cloudformation/servicediscovery/aws-servicediscovery-service.go index bded08f0eb..7559430a15 100644 --- a/cloudformation/servicediscovery/aws-servicediscovery-service.go +++ b/cloudformation/servicediscovery/aws-servicediscovery-service.go @@ -50,6 +50,9 @@ type Service struct { // 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 @@ -67,12 +70,14 @@ func (r Service) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -86,6 +91,7 @@ func (r *Service) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -109,5 +115,8 @@ func (r *Service) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/servicediscovery/aws-servicediscovery-service_dnsconfig.go b/cloudformation/servicediscovery/aws-servicediscovery-service_dnsconfig.go index b455c66cd6..60b1adf09f 100644 --- a/cloudformation/servicediscovery/aws-servicediscovery-service_dnsconfig.go +++ b/cloudformation/servicediscovery/aws-servicediscovery-service_dnsconfig.go @@ -31,6 +31,9 @@ type Service_DnsConfig struct { // 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 diff --git a/cloudformation/servicediscovery/aws-servicediscovery-service_dnsrecord.go b/cloudformation/servicediscovery/aws-servicediscovery-service_dnsrecord.go index 491614689b..736612609f 100644 --- a/cloudformation/servicediscovery/aws-servicediscovery-service_dnsrecord.go +++ b/cloudformation/servicediscovery/aws-servicediscovery-service_dnsrecord.go @@ -26,6 +26,9 @@ type Service_DnsRecord struct { // 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 diff --git a/cloudformation/servicediscovery/aws-servicediscovery-service_healthcheckconfig.go b/cloudformation/servicediscovery/aws-servicediscovery-service_healthcheckconfig.go index b69eff3866..dd13f3a910 100644 --- a/cloudformation/servicediscovery/aws-servicediscovery-service_healthcheckconfig.go +++ b/cloudformation/servicediscovery/aws-servicediscovery-service_healthcheckconfig.go @@ -31,6 +31,9 @@ type Service_HealthCheckConfig struct { // 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 diff --git a/cloudformation/servicediscovery/aws-servicediscovery-service_healthcheckcustomconfig.go b/cloudformation/servicediscovery/aws-servicediscovery-service_healthcheckcustomconfig.go index c3f292c583..0d2a280bd9 100644 --- a/cloudformation/servicediscovery/aws-servicediscovery-service_healthcheckcustomconfig.go +++ b/cloudformation/servicediscovery/aws-servicediscovery-service_healthcheckcustomconfig.go @@ -21,6 +21,9 @@ type Service_HealthCheckCustomConfig struct { // 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 diff --git a/cloudformation/ses/aws-ses-configurationset.go b/cloudformation/ses/aws-ses-configurationset.go index 7d88e2b47a..7ff174c969 100644 --- a/cloudformation/ses/aws-ses-configurationset.go +++ b/cloudformation/ses/aws-ses-configurationset.go @@ -25,6 +25,9 @@ type ConfigurationSet struct { // 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 @@ -42,12 +45,14 @@ func (r ConfigurationSet) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -61,6 +66,7 @@ func (r *ConfigurationSet) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -84,5 +90,8 @@ func (r *ConfigurationSet) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/ses/aws-ses-configurationseteventdestination.go b/cloudformation/ses/aws-ses-configurationseteventdestination.go index 61a55a777d..282e089ca3 100644 --- a/cloudformation/ses/aws-ses-configurationseteventdestination.go +++ b/cloudformation/ses/aws-ses-configurationseteventdestination.go @@ -30,6 +30,9 @@ type ConfigurationSetEventDestination struct { // 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 @@ -47,12 +50,14 @@ func (r ConfigurationSetEventDestination) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -66,6 +71,7 @@ func (r *ConfigurationSetEventDestination) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -89,5 +95,8 @@ func (r *ConfigurationSetEventDestination) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/ses/aws-ses-configurationseteventdestination_cloudwatchdestination.go b/cloudformation/ses/aws-ses-configurationseteventdestination_cloudwatchdestination.go index 2461dc54a0..5822203e37 100644 --- a/cloudformation/ses/aws-ses-configurationseteventdestination_cloudwatchdestination.go +++ b/cloudformation/ses/aws-ses-configurationseteventdestination_cloudwatchdestination.go @@ -21,6 +21,9 @@ type ConfigurationSetEventDestination_CloudWatchDestination struct { // 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 diff --git a/cloudformation/ses/aws-ses-configurationseteventdestination_dimensionconfiguration.go b/cloudformation/ses/aws-ses-configurationseteventdestination_dimensionconfiguration.go index 9b2a3ad787..a08e371de4 100644 --- a/cloudformation/ses/aws-ses-configurationseteventdestination_dimensionconfiguration.go +++ b/cloudformation/ses/aws-ses-configurationseteventdestination_dimensionconfiguration.go @@ -31,6 +31,9 @@ type ConfigurationSetEventDestination_DimensionConfiguration struct { // 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 diff --git a/cloudformation/ses/aws-ses-configurationseteventdestination_eventdestination.go b/cloudformation/ses/aws-ses-configurationseteventdestination_eventdestination.go index e6ca37a33b..f7f5c9b4fd 100644 --- a/cloudformation/ses/aws-ses-configurationseteventdestination_eventdestination.go +++ b/cloudformation/ses/aws-ses-configurationseteventdestination_eventdestination.go @@ -41,6 +41,9 @@ type ConfigurationSetEventDestination_EventDestination struct { // 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 diff --git a/cloudformation/ses/aws-ses-configurationseteventdestination_kinesisfirehosedestination.go b/cloudformation/ses/aws-ses-configurationseteventdestination_kinesisfirehosedestination.go index 720cd5586d..e768336509 100644 --- a/cloudformation/ses/aws-ses-configurationseteventdestination_kinesisfirehosedestination.go +++ b/cloudformation/ses/aws-ses-configurationseteventdestination_kinesisfirehosedestination.go @@ -26,6 +26,9 @@ type ConfigurationSetEventDestination_KinesisFirehoseDestination struct { // 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 diff --git a/cloudformation/ses/aws-ses-receiptfilter.go b/cloudformation/ses/aws-ses-receiptfilter.go index 793db2d09c..207813072b 100644 --- a/cloudformation/ses/aws-ses-receiptfilter.go +++ b/cloudformation/ses/aws-ses-receiptfilter.go @@ -25,6 +25,9 @@ type ReceiptFilter struct { // 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 @@ -42,12 +45,14 @@ func (r ReceiptFilter) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -61,6 +66,7 @@ func (r *ReceiptFilter) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -84,5 +90,8 @@ func (r *ReceiptFilter) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/ses/aws-ses-receiptfilter_filter.go b/cloudformation/ses/aws-ses-receiptfilter_filter.go index 81210826c9..21259c0d1e 100644 --- a/cloudformation/ses/aws-ses-receiptfilter_filter.go +++ b/cloudformation/ses/aws-ses-receiptfilter_filter.go @@ -26,6 +26,9 @@ type ReceiptFilter_Filter struct { // 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 diff --git a/cloudformation/ses/aws-ses-receiptfilter_ipfilter.go b/cloudformation/ses/aws-ses-receiptfilter_ipfilter.go index 42ad94f3dc..d612aa37f8 100644 --- a/cloudformation/ses/aws-ses-receiptfilter_ipfilter.go +++ b/cloudformation/ses/aws-ses-receiptfilter_ipfilter.go @@ -26,6 +26,9 @@ type ReceiptFilter_IpFilter struct { // 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 diff --git a/cloudformation/ses/aws-ses-receiptrule.go b/cloudformation/ses/aws-ses-receiptrule.go index 6f3a198597..5405a9ab8c 100644 --- a/cloudformation/ses/aws-ses-receiptrule.go +++ b/cloudformation/ses/aws-ses-receiptrule.go @@ -35,6 +35,9 @@ type ReceiptRule struct { // 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 @@ -52,12 +55,14 @@ func (r ReceiptRule) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -71,6 +76,7 @@ func (r *ReceiptRule) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -94,5 +100,8 @@ func (r *ReceiptRule) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/ses/aws-ses-receiptrule_action.go b/cloudformation/ses/aws-ses-receiptrule_action.go index 99bbefbe93..a4dfb8b52d 100644 --- a/cloudformation/ses/aws-ses-receiptrule_action.go +++ b/cloudformation/ses/aws-ses-receiptrule_action.go @@ -51,6 +51,9 @@ type ReceiptRule_Action struct { // 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 diff --git a/cloudformation/ses/aws-ses-receiptrule_addheaderaction.go b/cloudformation/ses/aws-ses-receiptrule_addheaderaction.go index 59ef965b9c..8d56fce472 100644 --- a/cloudformation/ses/aws-ses-receiptrule_addheaderaction.go +++ b/cloudformation/ses/aws-ses-receiptrule_addheaderaction.go @@ -26,6 +26,9 @@ type ReceiptRule_AddHeaderAction struct { // 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 diff --git a/cloudformation/ses/aws-ses-receiptrule_bounceaction.go b/cloudformation/ses/aws-ses-receiptrule_bounceaction.go index a0e657ded6..a4728e3e82 100644 --- a/cloudformation/ses/aws-ses-receiptrule_bounceaction.go +++ b/cloudformation/ses/aws-ses-receiptrule_bounceaction.go @@ -41,6 +41,9 @@ type ReceiptRule_BounceAction struct { // 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 diff --git a/cloudformation/ses/aws-ses-receiptrule_lambdaaction.go b/cloudformation/ses/aws-ses-receiptrule_lambdaaction.go index 4da3b6b47c..dd1e600dbc 100644 --- a/cloudformation/ses/aws-ses-receiptrule_lambdaaction.go +++ b/cloudformation/ses/aws-ses-receiptrule_lambdaaction.go @@ -31,6 +31,9 @@ type ReceiptRule_LambdaAction struct { // 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 diff --git a/cloudformation/ses/aws-ses-receiptrule_rule.go b/cloudformation/ses/aws-ses-receiptrule_rule.go index 6cd5fc95a0..223b5d0996 100644 --- a/cloudformation/ses/aws-ses-receiptrule_rule.go +++ b/cloudformation/ses/aws-ses-receiptrule_rule.go @@ -46,6 +46,9 @@ type ReceiptRule_Rule struct { // 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 diff --git a/cloudformation/ses/aws-ses-receiptrule_s3action.go b/cloudformation/ses/aws-ses-receiptrule_s3action.go index 9416f97801..46b72d97af 100644 --- a/cloudformation/ses/aws-ses-receiptrule_s3action.go +++ b/cloudformation/ses/aws-ses-receiptrule_s3action.go @@ -36,6 +36,9 @@ type ReceiptRule_S3Action struct { // 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 diff --git a/cloudformation/ses/aws-ses-receiptrule_snsaction.go b/cloudformation/ses/aws-ses-receiptrule_snsaction.go index c29d0d567f..29a7ce2f1e 100644 --- a/cloudformation/ses/aws-ses-receiptrule_snsaction.go +++ b/cloudformation/ses/aws-ses-receiptrule_snsaction.go @@ -26,6 +26,9 @@ type ReceiptRule_SNSAction struct { // 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 diff --git a/cloudformation/ses/aws-ses-receiptrule_stopaction.go b/cloudformation/ses/aws-ses-receiptrule_stopaction.go index ae895a37a4..2e5a656b28 100644 --- a/cloudformation/ses/aws-ses-receiptrule_stopaction.go +++ b/cloudformation/ses/aws-ses-receiptrule_stopaction.go @@ -26,6 +26,9 @@ type ReceiptRule_StopAction struct { // 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 diff --git a/cloudformation/ses/aws-ses-receiptrule_workmailaction.go b/cloudformation/ses/aws-ses-receiptrule_workmailaction.go index 02cc4fbd43..3eb1fd27b5 100644 --- a/cloudformation/ses/aws-ses-receiptrule_workmailaction.go +++ b/cloudformation/ses/aws-ses-receiptrule_workmailaction.go @@ -26,6 +26,9 @@ type ReceiptRule_WorkmailAction struct { // 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 diff --git a/cloudformation/ses/aws-ses-receiptruleset.go b/cloudformation/ses/aws-ses-receiptruleset.go index 4f30a753d3..b621e1f87d 100644 --- a/cloudformation/ses/aws-ses-receiptruleset.go +++ b/cloudformation/ses/aws-ses-receiptruleset.go @@ -25,6 +25,9 @@ type ReceiptRuleSet struct { // 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 @@ -42,12 +45,14 @@ func (r ReceiptRuleSet) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -61,6 +66,7 @@ func (r *ReceiptRuleSet) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -84,5 +90,8 @@ func (r *ReceiptRuleSet) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/ses/aws-ses-template.go b/cloudformation/ses/aws-ses-template.go index ce1b65a060..cf3ddb61c5 100644 --- a/cloudformation/ses/aws-ses-template.go +++ b/cloudformation/ses/aws-ses-template.go @@ -25,6 +25,9 @@ type Template struct { // 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 @@ -42,12 +45,14 @@ func (r Template) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -61,6 +66,7 @@ func (r *Template) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -84,5 +90,8 @@ func (r *Template) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/ses/aws-ses-template_template.go b/cloudformation/ses/aws-ses-template_template.go index 70389ffc6a..fc689e82ad 100644 --- a/cloudformation/ses/aws-ses-template_template.go +++ b/cloudformation/ses/aws-ses-template_template.go @@ -36,6 +36,9 @@ type Template_Template struct { // 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 diff --git a/cloudformation/sns/aws-sns-subscription.go b/cloudformation/sns/aws-sns-subscription.go index 4eabb338fc..fdb33752fc 100644 --- a/cloudformation/sns/aws-sns-subscription.go +++ b/cloudformation/sns/aws-sns-subscription.go @@ -60,6 +60,9 @@ type Subscription struct { // 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 @@ -77,12 +80,14 @@ func (r Subscription) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -96,6 +101,7 @@ func (r *Subscription) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -119,5 +125,8 @@ func (r *Subscription) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/sns/aws-sns-topic.go b/cloudformation/sns/aws-sns-topic.go index a385ef533e..4100a14856 100644 --- a/cloudformation/sns/aws-sns-topic.go +++ b/cloudformation/sns/aws-sns-topic.go @@ -46,6 +46,9 @@ type Topic struct { // 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 @@ -63,12 +66,14 @@ func (r Topic) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -82,6 +87,7 @@ func (r *Topic) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -105,5 +111,8 @@ func (r *Topic) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/sns/aws-sns-topic_subscription.go b/cloudformation/sns/aws-sns-topic_subscription.go index 868a59db59..2e788eba7f 100644 --- a/cloudformation/sns/aws-sns-topic_subscription.go +++ b/cloudformation/sns/aws-sns-topic_subscription.go @@ -26,6 +26,9 @@ type Topic_Subscription struct { // 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 diff --git a/cloudformation/sns/aws-sns-topicpolicy.go b/cloudformation/sns/aws-sns-topicpolicy.go index f7dddf232d..adaba24077 100644 --- a/cloudformation/sns/aws-sns-topicpolicy.go +++ b/cloudformation/sns/aws-sns-topicpolicy.go @@ -30,6 +30,9 @@ type TopicPolicy struct { // 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 @@ -47,12 +50,14 @@ func (r TopicPolicy) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -66,6 +71,7 @@ func (r *TopicPolicy) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -89,5 +95,8 @@ func (r *TopicPolicy) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/sqs/aws-sqs-queue.go b/cloudformation/sqs/aws-sqs-queue.go index 8bba64320d..617c9dbae4 100644 --- a/cloudformation/sqs/aws-sqs-queue.go +++ b/cloudformation/sqs/aws-sqs-queue.go @@ -81,6 +81,9 @@ type Queue struct { // 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 @@ -98,12 +101,14 @@ func (r Queue) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -117,6 +122,7 @@ func (r *Queue) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -140,5 +146,8 @@ func (r *Queue) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/sqs/aws-sqs-queuepolicy.go b/cloudformation/sqs/aws-sqs-queuepolicy.go index 31d150c241..c11318a805 100644 --- a/cloudformation/sqs/aws-sqs-queuepolicy.go +++ b/cloudformation/sqs/aws-sqs-queuepolicy.go @@ -30,6 +30,9 @@ type QueuePolicy struct { // 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 @@ -47,12 +50,14 @@ func (r QueuePolicy) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -66,6 +71,7 @@ func (r *QueuePolicy) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -89,5 +95,8 @@ func (r *QueuePolicy) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/ssm/aws-ssm-association.go b/cloudformation/ssm/aws-ssm-association.go index 62c38fd8de..a308529d40 100644 --- a/cloudformation/ssm/aws-ssm-association.go +++ b/cloudformation/ssm/aws-ssm-association.go @@ -60,6 +60,9 @@ type Association struct { // 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 @@ -77,12 +80,14 @@ func (r Association) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -96,6 +101,7 @@ func (r *Association) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -119,5 +125,8 @@ func (r *Association) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/ssm/aws-ssm-association_instanceassociationoutputlocation.go b/cloudformation/ssm/aws-ssm-association_instanceassociationoutputlocation.go index 71169b27ba..5a1c0e8f7c 100644 --- a/cloudformation/ssm/aws-ssm-association_instanceassociationoutputlocation.go +++ b/cloudformation/ssm/aws-ssm-association_instanceassociationoutputlocation.go @@ -21,6 +21,9 @@ type Association_InstanceAssociationOutputLocation struct { // 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 diff --git a/cloudformation/ssm/aws-ssm-association_parametervalues.go b/cloudformation/ssm/aws-ssm-association_parametervalues.go index 1c04d7f7e3..3c114d32e1 100644 --- a/cloudformation/ssm/aws-ssm-association_parametervalues.go +++ b/cloudformation/ssm/aws-ssm-association_parametervalues.go @@ -21,6 +21,9 @@ type Association_ParameterValues struct { // 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 diff --git a/cloudformation/ssm/aws-ssm-association_s3outputlocation.go b/cloudformation/ssm/aws-ssm-association_s3outputlocation.go index a09386f882..2fef72445a 100644 --- a/cloudformation/ssm/aws-ssm-association_s3outputlocation.go +++ b/cloudformation/ssm/aws-ssm-association_s3outputlocation.go @@ -26,6 +26,9 @@ type Association_S3OutputLocation struct { // 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 diff --git a/cloudformation/ssm/aws-ssm-association_target.go b/cloudformation/ssm/aws-ssm-association_target.go index 5e821d23fe..651ab9100a 100644 --- a/cloudformation/ssm/aws-ssm-association_target.go +++ b/cloudformation/ssm/aws-ssm-association_target.go @@ -26,6 +26,9 @@ type Association_Target struct { // 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 diff --git a/cloudformation/ssm/aws-ssm-document.go b/cloudformation/ssm/aws-ssm-document.go index d77bcb68dc..77ccd9bd07 100644 --- a/cloudformation/ssm/aws-ssm-document.go +++ b/cloudformation/ssm/aws-ssm-document.go @@ -23,6 +23,11 @@ type Document struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-document.html#cfn-ssm-document-documenttype DocumentType string `json:"DocumentType,omitempty"` + // Name AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-document.html#cfn-ssm-document-name + Name string `json:"Name,omitempty"` + // Tags AWS CloudFormation Property // Required: false // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-document.html#cfn-ssm-document-tags @@ -36,6 +41,9 @@ type Document struct { // 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 @@ -53,12 +61,14 @@ func (r Document) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -72,6 +82,7 @@ func (r *Document) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -95,5 +106,8 @@ func (r *Document) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/ssm/aws-ssm-maintenancewindow.go b/cloudformation/ssm/aws-ssm-maintenancewindow.go index 8eedc7af8a..5a8676bcc7 100644 --- a/cloudformation/ssm/aws-ssm-maintenancewindow.go +++ b/cloudformation/ssm/aws-ssm-maintenancewindow.go @@ -71,6 +71,9 @@ type MaintenanceWindow struct { // 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 @@ -88,12 +91,14 @@ func (r MaintenanceWindow) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -107,6 +112,7 @@ func (r *MaintenanceWindow) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -130,5 +136,8 @@ func (r *MaintenanceWindow) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/ssm/aws-ssm-maintenancewindowtarget.go b/cloudformation/ssm/aws-ssm-maintenancewindowtarget.go index a9d758c146..73848e7f77 100644 --- a/cloudformation/ssm/aws-ssm-maintenancewindowtarget.go +++ b/cloudformation/ssm/aws-ssm-maintenancewindowtarget.go @@ -50,6 +50,9 @@ type MaintenanceWindowTarget struct { // 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 @@ -67,12 +70,14 @@ func (r MaintenanceWindowTarget) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -86,6 +91,7 @@ func (r *MaintenanceWindowTarget) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -109,5 +115,8 @@ func (r *MaintenanceWindowTarget) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/ssm/aws-ssm-maintenancewindowtarget_targets.go b/cloudformation/ssm/aws-ssm-maintenancewindowtarget_targets.go index 5e01341e25..00d4ed3a8d 100644 --- a/cloudformation/ssm/aws-ssm-maintenancewindowtarget_targets.go +++ b/cloudformation/ssm/aws-ssm-maintenancewindowtarget_targets.go @@ -26,6 +26,9 @@ type MaintenanceWindowTarget_Targets struct { // 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 diff --git a/cloudformation/ssm/aws-ssm-maintenancewindowtask.go b/cloudformation/ssm/aws-ssm-maintenancewindowtask.go index 2a8dd7727d..ae4f5e2066 100644 --- a/cloudformation/ssm/aws-ssm-maintenancewindowtask.go +++ b/cloudformation/ssm/aws-ssm-maintenancewindowtask.go @@ -85,6 +85,9 @@ type MaintenanceWindowTask struct { // 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 @@ -102,12 +105,14 @@ func (r MaintenanceWindowTask) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -121,6 +126,7 @@ func (r *MaintenanceWindowTask) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -144,5 +150,8 @@ func (r *MaintenanceWindowTask) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/ssm/aws-ssm-maintenancewindowtask_logginginfo.go b/cloudformation/ssm/aws-ssm-maintenancewindowtask_logginginfo.go index aa39728b0b..2ac95159c4 100644 --- a/cloudformation/ssm/aws-ssm-maintenancewindowtask_logginginfo.go +++ b/cloudformation/ssm/aws-ssm-maintenancewindowtask_logginginfo.go @@ -31,6 +31,9 @@ type MaintenanceWindowTask_LoggingInfo struct { // 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 diff --git a/cloudformation/ssm/aws-ssm-maintenancewindowtask_maintenancewindowautomationparameters.go b/cloudformation/ssm/aws-ssm-maintenancewindowtask_maintenancewindowautomationparameters.go index 123c031848..2dd6602249 100644 --- a/cloudformation/ssm/aws-ssm-maintenancewindowtask_maintenancewindowautomationparameters.go +++ b/cloudformation/ssm/aws-ssm-maintenancewindowtask_maintenancewindowautomationparameters.go @@ -26,6 +26,9 @@ type MaintenanceWindowTask_MaintenanceWindowAutomationParameters struct { // 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 diff --git a/cloudformation/ssm/aws-ssm-maintenancewindowtask_maintenancewindowlambdaparameters.go b/cloudformation/ssm/aws-ssm-maintenancewindowtask_maintenancewindowlambdaparameters.go index f0650c1d63..1b907fa8ec 100644 --- a/cloudformation/ssm/aws-ssm-maintenancewindowtask_maintenancewindowlambdaparameters.go +++ b/cloudformation/ssm/aws-ssm-maintenancewindowtask_maintenancewindowlambdaparameters.go @@ -31,6 +31,9 @@ type MaintenanceWindowTask_MaintenanceWindowLambdaParameters struct { // 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 diff --git a/cloudformation/ssm/aws-ssm-maintenancewindowtask_maintenancewindowruncommandparameters.go b/cloudformation/ssm/aws-ssm-maintenancewindowtask_maintenancewindowruncommandparameters.go index 639962da25..0d468dad99 100644 --- a/cloudformation/ssm/aws-ssm-maintenancewindowtask_maintenancewindowruncommandparameters.go +++ b/cloudformation/ssm/aws-ssm-maintenancewindowtask_maintenancewindowruncommandparameters.go @@ -61,6 +61,9 @@ type MaintenanceWindowTask_MaintenanceWindowRunCommandParameters struct { // 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 diff --git a/cloudformation/ssm/aws-ssm-maintenancewindowtask_maintenancewindowstepfunctionsparameters.go b/cloudformation/ssm/aws-ssm-maintenancewindowtask_maintenancewindowstepfunctionsparameters.go index c2fb7551a7..7f9b50a60d 100644 --- a/cloudformation/ssm/aws-ssm-maintenancewindowtask_maintenancewindowstepfunctionsparameters.go +++ b/cloudformation/ssm/aws-ssm-maintenancewindowtask_maintenancewindowstepfunctionsparameters.go @@ -26,6 +26,9 @@ type MaintenanceWindowTask_MaintenanceWindowStepFunctionsParameters struct { // 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 diff --git a/cloudformation/ssm/aws-ssm-maintenancewindowtask_notificationconfig.go b/cloudformation/ssm/aws-ssm-maintenancewindowtask_notificationconfig.go index eb44ccfcf4..df6794d27e 100644 --- a/cloudformation/ssm/aws-ssm-maintenancewindowtask_notificationconfig.go +++ b/cloudformation/ssm/aws-ssm-maintenancewindowtask_notificationconfig.go @@ -31,6 +31,9 @@ type MaintenanceWindowTask_NotificationConfig struct { // 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 diff --git a/cloudformation/ssm/aws-ssm-maintenancewindowtask_target.go b/cloudformation/ssm/aws-ssm-maintenancewindowtask_target.go index 018b5148ab..9c408c2554 100644 --- a/cloudformation/ssm/aws-ssm-maintenancewindowtask_target.go +++ b/cloudformation/ssm/aws-ssm-maintenancewindowtask_target.go @@ -26,6 +26,9 @@ type MaintenanceWindowTask_Target struct { // 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 diff --git a/cloudformation/ssm/aws-ssm-maintenancewindowtask_taskinvocationparameters.go b/cloudformation/ssm/aws-ssm-maintenancewindowtask_taskinvocationparameters.go index 05059dfa60..88553018c1 100644 --- a/cloudformation/ssm/aws-ssm-maintenancewindowtask_taskinvocationparameters.go +++ b/cloudformation/ssm/aws-ssm-maintenancewindowtask_taskinvocationparameters.go @@ -36,6 +36,9 @@ type MaintenanceWindowTask_TaskInvocationParameters struct { // 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 diff --git a/cloudformation/ssm/aws-ssm-parameter.go b/cloudformation/ssm/aws-ssm-parameter.go index a48454500a..ba01ae73e5 100644 --- a/cloudformation/ssm/aws-ssm-parameter.go +++ b/cloudformation/ssm/aws-ssm-parameter.go @@ -60,6 +60,9 @@ type Parameter struct { // 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 @@ -77,12 +80,14 @@ func (r Parameter) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -96,6 +101,7 @@ func (r *Parameter) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -119,5 +125,8 @@ func (r *Parameter) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/ssm/aws-ssm-patchbaseline.go b/cloudformation/ssm/aws-ssm-patchbaseline.go index 068b6796aa..d6da47c5e5 100644 --- a/cloudformation/ssm/aws-ssm-patchbaseline.go +++ b/cloudformation/ssm/aws-ssm-patchbaseline.go @@ -86,6 +86,9 @@ type PatchBaseline struct { // 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 @@ -103,12 +106,14 @@ func (r PatchBaseline) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -122,6 +127,7 @@ func (r *PatchBaseline) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -145,5 +151,8 @@ func (r *PatchBaseline) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/ssm/aws-ssm-patchbaseline_patchfilter.go b/cloudformation/ssm/aws-ssm-patchbaseline_patchfilter.go index 98f77f3c97..2bad734e78 100644 --- a/cloudformation/ssm/aws-ssm-patchbaseline_patchfilter.go +++ b/cloudformation/ssm/aws-ssm-patchbaseline_patchfilter.go @@ -26,6 +26,9 @@ type PatchBaseline_PatchFilter struct { // 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 diff --git a/cloudformation/ssm/aws-ssm-patchbaseline_patchfiltergroup.go b/cloudformation/ssm/aws-ssm-patchbaseline_patchfiltergroup.go index 402e05c0af..c4f2eb132d 100644 --- a/cloudformation/ssm/aws-ssm-patchbaseline_patchfiltergroup.go +++ b/cloudformation/ssm/aws-ssm-patchbaseline_patchfiltergroup.go @@ -21,6 +21,9 @@ type PatchBaseline_PatchFilterGroup struct { // 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 diff --git a/cloudformation/ssm/aws-ssm-patchbaseline_patchsource.go b/cloudformation/ssm/aws-ssm-patchbaseline_patchsource.go index 30da03c0fd..7b52268f0b 100644 --- a/cloudformation/ssm/aws-ssm-patchbaseline_patchsource.go +++ b/cloudformation/ssm/aws-ssm-patchbaseline_patchsource.go @@ -31,6 +31,9 @@ type PatchBaseline_PatchSource struct { // 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 diff --git a/cloudformation/ssm/aws-ssm-patchbaseline_rule.go b/cloudformation/ssm/aws-ssm-patchbaseline_rule.go index abfb183e64..d0d1d55424 100644 --- a/cloudformation/ssm/aws-ssm-patchbaseline_rule.go +++ b/cloudformation/ssm/aws-ssm-patchbaseline_rule.go @@ -36,6 +36,9 @@ type PatchBaseline_Rule struct { // 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 diff --git a/cloudformation/ssm/aws-ssm-patchbaseline_rulegroup.go b/cloudformation/ssm/aws-ssm-patchbaseline_rulegroup.go index 5984f68d58..689bb73fc5 100644 --- a/cloudformation/ssm/aws-ssm-patchbaseline_rulegroup.go +++ b/cloudformation/ssm/aws-ssm-patchbaseline_rulegroup.go @@ -21,6 +21,9 @@ type PatchBaseline_RuleGroup struct { // 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 diff --git a/cloudformation/ssm/aws-ssm-resourcedatasync.go b/cloudformation/ssm/aws-ssm-resourcedatasync.go index d900f56e74..38d048d42a 100644 --- a/cloudformation/ssm/aws-ssm-resourcedatasync.go +++ b/cloudformation/ssm/aws-ssm-resourcedatasync.go @@ -13,7 +13,7 @@ import ( type ResourceDataSync struct { // BucketName AWS CloudFormation Property - // Required: true + // Required: false // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-resourcedatasync.html#cfn-ssm-resourcedatasync-bucketname BucketName string `json:"BucketName,omitempty"` @@ -23,7 +23,7 @@ type ResourceDataSync struct { BucketPrefix string `json:"BucketPrefix,omitempty"` // BucketRegion AWS CloudFormation Property - // Required: true + // Required: false // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-resourcedatasync.html#cfn-ssm-resourcedatasync-bucketregion BucketRegion string `json:"BucketRegion,omitempty"` @@ -32,8 +32,13 @@ type ResourceDataSync struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-resourcedatasync.html#cfn-ssm-resourcedatasync-kmskeyarn KMSKeyArn string `json:"KMSKeyArn,omitempty"` + // S3Destination AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-resourcedatasync.html#cfn-ssm-resourcedatasync-s3destination + S3Destination *ResourceDataSync_S3Destination `json:"S3Destination,omitempty"` + // SyncFormat AWS CloudFormation Property - // Required: true + // Required: false // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-resourcedatasync.html#cfn-ssm-resourcedatasync-syncformat SyncFormat string `json:"SyncFormat,omitempty"` @@ -42,6 +47,16 @@ type ResourceDataSync struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-resourcedatasync.html#cfn-ssm-resourcedatasync-syncname SyncName string `json:"SyncName,omitempty"` + // SyncSource AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-resourcedatasync.html#cfn-ssm-resourcedatasync-syncsource + SyncSource *ResourceDataSync_SyncSource `json:"SyncSource,omitempty"` + + // SyncType AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-resourcedatasync.html#cfn-ssm-resourcedatasync-synctype + SyncType string `json:"SyncType,omitempty"` + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"` @@ -50,6 +65,9 @@ type ResourceDataSync struct { // 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 @@ -67,12 +85,14 @@ func (r ResourceDataSync) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -86,6 +106,7 @@ func (r *ResourceDataSync) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -109,5 +130,8 @@ func (r *ResourceDataSync) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/ssm/aws-ssm-resourcedatasync_awsorganizationssource.go b/cloudformation/ssm/aws-ssm-resourcedatasync_awsorganizationssource.go new file mode 100644 index 0000000000..ba8f210833 --- /dev/null +++ b/cloudformation/ssm/aws-ssm-resourcedatasync_awsorganizationssource.go @@ -0,0 +1,37 @@ +package ssm + +import ( + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// ResourceDataSync_AwsOrganizationsSource AWS CloudFormation Resource (AWS::SSM::ResourceDataSync.AwsOrganizationsSource) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssm-resourcedatasync-awsorganizationssource.html +type ResourceDataSync_AwsOrganizationsSource struct { + + // OrganizationSourceType AWS CloudFormation Property + // Required: true + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssm-resourcedatasync-awsorganizationssource.html#cfn-ssm-resourcedatasync-awsorganizationssource-organizationsourcetype + OrganizationSourceType string `json:"OrganizationSourceType,omitempty"` + + // OrganizationalUnits AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssm-resourcedatasync-awsorganizationssource.html#cfn-ssm-resourcedatasync-awsorganizationssource-organizationalunits + OrganizationalUnits []string `json:"OrganizationalUnits,omitempty"` + + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `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 *ResourceDataSync_AwsOrganizationsSource) AWSCloudFormationType() string { + return "AWS::SSM::ResourceDataSync.AwsOrganizationsSource" +} diff --git a/cloudformation/ssm/aws-ssm-resourcedatasync_s3destination.go b/cloudformation/ssm/aws-ssm-resourcedatasync_s3destination.go new file mode 100644 index 0000000000..01b7184241 --- /dev/null +++ b/cloudformation/ssm/aws-ssm-resourcedatasync_s3destination.go @@ -0,0 +1,52 @@ +package ssm + +import ( + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// ResourceDataSync_S3Destination AWS CloudFormation Resource (AWS::SSM::ResourceDataSync.S3Destination) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssm-resourcedatasync-s3destination.html +type ResourceDataSync_S3Destination struct { + + // BucketName AWS CloudFormation Property + // Required: true + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssm-resourcedatasync-s3destination.html#cfn-ssm-resourcedatasync-s3destination-bucketname + BucketName string `json:"BucketName,omitempty"` + + // BucketPrefix AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssm-resourcedatasync-s3destination.html#cfn-ssm-resourcedatasync-s3destination-bucketprefix + BucketPrefix string `json:"BucketPrefix,omitempty"` + + // BucketRegion AWS CloudFormation Property + // Required: true + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssm-resourcedatasync-s3destination.html#cfn-ssm-resourcedatasync-s3destination-bucketregion + BucketRegion string `json:"BucketRegion,omitempty"` + + // KMSKeyArn AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssm-resourcedatasync-s3destination.html#cfn-ssm-resourcedatasync-s3destination-kmskeyarn + KMSKeyArn string `json:"KMSKeyArn,omitempty"` + + // SyncFormat AWS CloudFormation Property + // Required: true + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssm-resourcedatasync-s3destination.html#cfn-ssm-resourcedatasync-s3destination-syncformat + SyncFormat string `json:"SyncFormat,omitempty"` + + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `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 *ResourceDataSync_S3Destination) AWSCloudFormationType() string { + return "AWS::SSM::ResourceDataSync.S3Destination" +} diff --git a/cloudformation/ssm/aws-ssm-resourcedatasync_syncsource.go b/cloudformation/ssm/aws-ssm-resourcedatasync_syncsource.go new file mode 100644 index 0000000000..49a2fc04cd --- /dev/null +++ b/cloudformation/ssm/aws-ssm-resourcedatasync_syncsource.go @@ -0,0 +1,47 @@ +package ssm + +import ( + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// ResourceDataSync_SyncSource AWS CloudFormation Resource (AWS::SSM::ResourceDataSync.SyncSource) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssm-resourcedatasync-syncsource.html +type ResourceDataSync_SyncSource struct { + + // AwsOrganizationsSource AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssm-resourcedatasync-syncsource.html#cfn-ssm-resourcedatasync-syncsource-awsorganizationssource + AwsOrganizationsSource *ResourceDataSync_AwsOrganizationsSource `json:"AwsOrganizationsSource,omitempty"` + + // IncludeFutureRegions AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssm-resourcedatasync-syncsource.html#cfn-ssm-resourcedatasync-syncsource-includefutureregions + IncludeFutureRegions bool `json:"IncludeFutureRegions,omitempty"` + + // SourceRegions AWS CloudFormation Property + // Required: true + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssm-resourcedatasync-syncsource.html#cfn-ssm-resourcedatasync-syncsource-sourceregions + SourceRegions []string `json:"SourceRegions,omitempty"` + + // SourceType AWS CloudFormation Property + // Required: true + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssm-resourcedatasync-syncsource.html#cfn-ssm-resourcedatasync-syncsource-sourcetype + SourceType string `json:"SourceType,omitempty"` + + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `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 *ResourceDataSync_SyncSource) AWSCloudFormationType() string { + return "AWS::SSM::ResourceDataSync.SyncSource" +} diff --git a/cloudformation/stepfunctions/aws-stepfunctions-activity.go b/cloudformation/stepfunctions/aws-stepfunctions-activity.go index 77f2a4d3a7..9630e0f7ff 100644 --- a/cloudformation/stepfunctions/aws-stepfunctions-activity.go +++ b/cloudformation/stepfunctions/aws-stepfunctions-activity.go @@ -30,6 +30,9 @@ type Activity struct { // 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 @@ -47,12 +50,14 @@ func (r Activity) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -66,6 +71,7 @@ func (r *Activity) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -89,5 +95,8 @@ func (r *Activity) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/stepfunctions/aws-stepfunctions-activity_tagsentry.go b/cloudformation/stepfunctions/aws-stepfunctions-activity_tagsentry.go index 794c98b561..3e983420a3 100644 --- a/cloudformation/stepfunctions/aws-stepfunctions-activity_tagsentry.go +++ b/cloudformation/stepfunctions/aws-stepfunctions-activity_tagsentry.go @@ -26,6 +26,9 @@ type Activity_TagsEntry struct { // 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 diff --git a/cloudformation/stepfunctions/aws-stepfunctions-statemachine.go b/cloudformation/stepfunctions/aws-stepfunctions-statemachine.go index e23bf0a422..8740fa93d9 100644 --- a/cloudformation/stepfunctions/aws-stepfunctions-statemachine.go +++ b/cloudformation/stepfunctions/aws-stepfunctions-statemachine.go @@ -50,6 +50,9 @@ type StateMachine struct { // 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 @@ -67,12 +70,14 @@ func (r StateMachine) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -86,6 +91,7 @@ func (r *StateMachine) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -109,5 +115,8 @@ func (r *StateMachine) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/stepfunctions/aws-stepfunctions-statemachine_cloudwatchlogsloggroup.go b/cloudformation/stepfunctions/aws-stepfunctions-statemachine_cloudwatchlogsloggroup.go index be03e4927b..8944454a2d 100644 --- a/cloudformation/stepfunctions/aws-stepfunctions-statemachine_cloudwatchlogsloggroup.go +++ b/cloudformation/stepfunctions/aws-stepfunctions-statemachine_cloudwatchlogsloggroup.go @@ -21,6 +21,9 @@ type StateMachine_CloudWatchLogsLogGroup struct { // 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 diff --git a/cloudformation/stepfunctions/aws-stepfunctions-statemachine_logdestination.go b/cloudformation/stepfunctions/aws-stepfunctions-statemachine_logdestination.go index 709e050ad9..2f570ac98c 100644 --- a/cloudformation/stepfunctions/aws-stepfunctions-statemachine_logdestination.go +++ b/cloudformation/stepfunctions/aws-stepfunctions-statemachine_logdestination.go @@ -21,6 +21,9 @@ type StateMachine_LogDestination struct { // 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 diff --git a/cloudformation/stepfunctions/aws-stepfunctions-statemachine_loggingconfiguration.go b/cloudformation/stepfunctions/aws-stepfunctions-statemachine_loggingconfiguration.go index 34699a98ce..c2b5cef56d 100644 --- a/cloudformation/stepfunctions/aws-stepfunctions-statemachine_loggingconfiguration.go +++ b/cloudformation/stepfunctions/aws-stepfunctions-statemachine_loggingconfiguration.go @@ -31,6 +31,9 @@ type StateMachine_LoggingConfiguration struct { // 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 diff --git a/cloudformation/stepfunctions/aws-stepfunctions-statemachine_tagsentry.go b/cloudformation/stepfunctions/aws-stepfunctions-statemachine_tagsentry.go index 1d0a7eaf39..2202735d79 100644 --- a/cloudformation/stepfunctions/aws-stepfunctions-statemachine_tagsentry.go +++ b/cloudformation/stepfunctions/aws-stepfunctions-statemachine_tagsentry.go @@ -26,6 +26,9 @@ type StateMachine_TagsEntry struct { // 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 diff --git a/cloudformation/transfer/aws-transfer-server.go b/cloudformation/transfer/aws-transfer-server.go index a27d88e807..e92f1c4401 100644 --- a/cloudformation/transfer/aws-transfer-server.go +++ b/cloudformation/transfer/aws-transfer-server.go @@ -51,6 +51,9 @@ type Server struct { // 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 @@ -68,12 +71,14 @@ func (r Server) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -87,6 +92,7 @@ func (r *Server) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -110,5 +116,8 @@ func (r *Server) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/transfer/aws-transfer-server_endpointdetails.go b/cloudformation/transfer/aws-transfer-server_endpointdetails.go index 59ea572a42..0ac386be77 100644 --- a/cloudformation/transfer/aws-transfer-server_endpointdetails.go +++ b/cloudformation/transfer/aws-transfer-server_endpointdetails.go @@ -21,6 +21,9 @@ type Server_EndpointDetails struct { // 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 diff --git a/cloudformation/transfer/aws-transfer-server_identityproviderdetails.go b/cloudformation/transfer/aws-transfer-server_identityproviderdetails.go index 4b61af8f02..3c1a47761c 100644 --- a/cloudformation/transfer/aws-transfer-server_identityproviderdetails.go +++ b/cloudformation/transfer/aws-transfer-server_identityproviderdetails.go @@ -26,6 +26,9 @@ type Server_IdentityProviderDetails struct { // 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 diff --git a/cloudformation/transfer/aws-transfer-user.go b/cloudformation/transfer/aws-transfer-user.go index 20ffa77191..5f4bcc7ce0 100644 --- a/cloudformation/transfer/aws-transfer-user.go +++ b/cloudformation/transfer/aws-transfer-user.go @@ -18,6 +18,16 @@ type User struct { // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-transfer-user.html#cfn-transfer-user-homedirectory HomeDirectory string `json:"HomeDirectory,omitempty"` + // HomeDirectoryMappings AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-transfer-user.html#cfn-transfer-user-homedirectorymappings + HomeDirectoryMappings []User_HomeDirectoryMapEntry `json:"HomeDirectoryMappings,omitempty"` + + // HomeDirectoryType AWS CloudFormation Property + // Required: false + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-transfer-user.html#cfn-transfer-user-homedirectorytype + HomeDirectoryType string `json:"HomeDirectoryType,omitempty"` + // Policy AWS CloudFormation Property // Required: false // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-transfer-user.html#cfn-transfer-user-policy @@ -56,6 +66,9 @@ type User struct { // 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 @@ -73,12 +86,14 @@ func (r User) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -92,6 +107,7 @@ func (r *User) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -115,5 +131,8 @@ func (r *User) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/transfer/aws-transfer-user_homedirectorymapentry.go b/cloudformation/transfer/aws-transfer-user_homedirectorymapentry.go new file mode 100644 index 0000000000..7941d093c1 --- /dev/null +++ b/cloudformation/transfer/aws-transfer-user_homedirectorymapentry.go @@ -0,0 +1,37 @@ +package transfer + +import ( + "github.com/awslabs/goformation/v4/cloudformation/policies" +) + +// User_HomeDirectoryMapEntry AWS CloudFormation Resource (AWS::Transfer::User.HomeDirectoryMapEntry) +// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-transfer-user-homedirectorymapentry.html +type User_HomeDirectoryMapEntry struct { + + // Entry AWS CloudFormation Property + // Required: true + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-transfer-user-homedirectorymapentry.html#cfn-transfer-user-homedirectorymapentry-entry + Entry string `json:"Entry,omitempty"` + + // Target AWS CloudFormation Property + // Required: true + // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-transfer-user-homedirectorymapentry.html#cfn-transfer-user-homedirectorymapentry-target + Target string `json:"Target,omitempty"` + + // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy + AWSCloudFormationDeletionPolicy policies.DeletionPolicy `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 *User_HomeDirectoryMapEntry) AWSCloudFormationType() string { + return "AWS::Transfer::User.HomeDirectoryMapEntry" +} diff --git a/cloudformation/transfer/aws-transfer-user_sshpublickey.go b/cloudformation/transfer/aws-transfer-user_sshpublickey.go index b06b3b2a89..e1bfdfc8ec 100644 --- a/cloudformation/transfer/aws-transfer-user_sshpublickey.go +++ b/cloudformation/transfer/aws-transfer-user_sshpublickey.go @@ -16,6 +16,9 @@ type User_SshPublicKey struct { // 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 diff --git a/cloudformation/waf/aws-waf-bytematchset.go b/cloudformation/waf/aws-waf-bytematchset.go index a4cc44cda6..68ed59007d 100644 --- a/cloudformation/waf/aws-waf-bytematchset.go +++ b/cloudformation/waf/aws-waf-bytematchset.go @@ -30,6 +30,9 @@ type ByteMatchSet struct { // 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 @@ -47,12 +50,14 @@ func (r ByteMatchSet) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -66,6 +71,7 @@ func (r *ByteMatchSet) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -89,5 +95,8 @@ func (r *ByteMatchSet) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/waf/aws-waf-bytematchset_bytematchtuple.go b/cloudformation/waf/aws-waf-bytematchset_bytematchtuple.go index 1c17d32530..2a783d2b80 100644 --- a/cloudformation/waf/aws-waf-bytematchset_bytematchtuple.go +++ b/cloudformation/waf/aws-waf-bytematchset_bytematchtuple.go @@ -41,6 +41,9 @@ type ByteMatchSet_ByteMatchTuple struct { // 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 diff --git a/cloudformation/waf/aws-waf-bytematchset_fieldtomatch.go b/cloudformation/waf/aws-waf-bytematchset_fieldtomatch.go index b7056d32f8..f26af6389e 100644 --- a/cloudformation/waf/aws-waf-bytematchset_fieldtomatch.go +++ b/cloudformation/waf/aws-waf-bytematchset_fieldtomatch.go @@ -26,6 +26,9 @@ type ByteMatchSet_FieldToMatch struct { // 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 diff --git a/cloudformation/waf/aws-waf-ipset.go b/cloudformation/waf/aws-waf-ipset.go index dd42f74ba3..6acace6d46 100644 --- a/cloudformation/waf/aws-waf-ipset.go +++ b/cloudformation/waf/aws-waf-ipset.go @@ -30,6 +30,9 @@ type IPSet struct { // 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 @@ -47,12 +50,14 @@ func (r IPSet) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -66,6 +71,7 @@ func (r *IPSet) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -89,5 +95,8 @@ func (r *IPSet) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/waf/aws-waf-ipset_ipsetdescriptor.go b/cloudformation/waf/aws-waf-ipset_ipsetdescriptor.go index f09dabd96c..f449012c71 100644 --- a/cloudformation/waf/aws-waf-ipset_ipsetdescriptor.go +++ b/cloudformation/waf/aws-waf-ipset_ipsetdescriptor.go @@ -26,6 +26,9 @@ type IPSet_IPSetDescriptor struct { // 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 diff --git a/cloudformation/waf/aws-waf-rule.go b/cloudformation/waf/aws-waf-rule.go index 7e3e22ab58..7421ac6c2b 100644 --- a/cloudformation/waf/aws-waf-rule.go +++ b/cloudformation/waf/aws-waf-rule.go @@ -35,6 +35,9 @@ type Rule struct { // 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 @@ -52,12 +55,14 @@ func (r Rule) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -71,6 +76,7 @@ func (r *Rule) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -94,5 +100,8 @@ func (r *Rule) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/waf/aws-waf-rule_predicate.go b/cloudformation/waf/aws-waf-rule_predicate.go index b5ec51bc53..d2155938d4 100644 --- a/cloudformation/waf/aws-waf-rule_predicate.go +++ b/cloudformation/waf/aws-waf-rule_predicate.go @@ -31,6 +31,9 @@ type Rule_Predicate struct { // 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 diff --git a/cloudformation/waf/aws-waf-sizeconstraintset.go b/cloudformation/waf/aws-waf-sizeconstraintset.go index 8606b43360..9f5c564caf 100644 --- a/cloudformation/waf/aws-waf-sizeconstraintset.go +++ b/cloudformation/waf/aws-waf-sizeconstraintset.go @@ -30,6 +30,9 @@ type SizeConstraintSet struct { // 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 @@ -47,12 +50,14 @@ func (r SizeConstraintSet) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -66,6 +71,7 @@ func (r *SizeConstraintSet) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -89,5 +95,8 @@ func (r *SizeConstraintSet) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/waf/aws-waf-sizeconstraintset_fieldtomatch.go b/cloudformation/waf/aws-waf-sizeconstraintset_fieldtomatch.go index ca1dea87f2..bd902cd567 100644 --- a/cloudformation/waf/aws-waf-sizeconstraintset_fieldtomatch.go +++ b/cloudformation/waf/aws-waf-sizeconstraintset_fieldtomatch.go @@ -26,6 +26,9 @@ type SizeConstraintSet_FieldToMatch struct { // 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 diff --git a/cloudformation/waf/aws-waf-sizeconstraintset_sizeconstraint.go b/cloudformation/waf/aws-waf-sizeconstraintset_sizeconstraint.go index 47a6528929..b7a4739ea9 100644 --- a/cloudformation/waf/aws-waf-sizeconstraintset_sizeconstraint.go +++ b/cloudformation/waf/aws-waf-sizeconstraintset_sizeconstraint.go @@ -36,6 +36,9 @@ type SizeConstraintSet_SizeConstraint struct { // 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 diff --git a/cloudformation/waf/aws-waf-sqlinjectionmatchset.go b/cloudformation/waf/aws-waf-sqlinjectionmatchset.go index 3bfb871f92..2a0ba3faa7 100644 --- a/cloudformation/waf/aws-waf-sqlinjectionmatchset.go +++ b/cloudformation/waf/aws-waf-sqlinjectionmatchset.go @@ -30,6 +30,9 @@ type SqlInjectionMatchSet struct { // 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 @@ -47,12 +50,14 @@ func (r SqlInjectionMatchSet) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -66,6 +71,7 @@ func (r *SqlInjectionMatchSet) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -89,5 +95,8 @@ func (r *SqlInjectionMatchSet) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/waf/aws-waf-sqlinjectionmatchset_fieldtomatch.go b/cloudformation/waf/aws-waf-sqlinjectionmatchset_fieldtomatch.go index 4e3eb8ecfb..38887b45d1 100644 --- a/cloudformation/waf/aws-waf-sqlinjectionmatchset_fieldtomatch.go +++ b/cloudformation/waf/aws-waf-sqlinjectionmatchset_fieldtomatch.go @@ -26,6 +26,9 @@ type SqlInjectionMatchSet_FieldToMatch struct { // 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 diff --git a/cloudformation/waf/aws-waf-sqlinjectionmatchset_sqlinjectionmatchtuple.go b/cloudformation/waf/aws-waf-sqlinjectionmatchset_sqlinjectionmatchtuple.go index e3cfb3cb03..5cacf7b234 100644 --- a/cloudformation/waf/aws-waf-sqlinjectionmatchset_sqlinjectionmatchtuple.go +++ b/cloudformation/waf/aws-waf-sqlinjectionmatchset_sqlinjectionmatchtuple.go @@ -26,6 +26,9 @@ type SqlInjectionMatchSet_SqlInjectionMatchTuple struct { // 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 diff --git a/cloudformation/waf/aws-waf-webacl.go b/cloudformation/waf/aws-waf-webacl.go index ef6bc4c682..81ee4be227 100644 --- a/cloudformation/waf/aws-waf-webacl.go +++ b/cloudformation/waf/aws-waf-webacl.go @@ -40,6 +40,9 @@ type WebACL struct { // 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 @@ -57,12 +60,14 @@ func (r WebACL) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -76,6 +81,7 @@ func (r *WebACL) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -99,5 +105,8 @@ func (r *WebACL) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/waf/aws-waf-webacl_activatedrule.go b/cloudformation/waf/aws-waf-webacl_activatedrule.go index c713d2fd6d..1e133c86ab 100644 --- a/cloudformation/waf/aws-waf-webacl_activatedrule.go +++ b/cloudformation/waf/aws-waf-webacl_activatedrule.go @@ -31,6 +31,9 @@ type WebACL_ActivatedRule struct { // 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 diff --git a/cloudformation/waf/aws-waf-webacl_wafaction.go b/cloudformation/waf/aws-waf-webacl_wafaction.go index bd17cdbf8d..9f9719a478 100644 --- a/cloudformation/waf/aws-waf-webacl_wafaction.go +++ b/cloudformation/waf/aws-waf-webacl_wafaction.go @@ -21,6 +21,9 @@ type WebACL_WafAction struct { // 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 diff --git a/cloudformation/waf/aws-waf-xssmatchset.go b/cloudformation/waf/aws-waf-xssmatchset.go index c056c279b2..0e531a50eb 100644 --- a/cloudformation/waf/aws-waf-xssmatchset.go +++ b/cloudformation/waf/aws-waf-xssmatchset.go @@ -30,6 +30,9 @@ type XssMatchSet struct { // 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 @@ -47,12 +50,14 @@ func (r XssMatchSet) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -66,6 +71,7 @@ func (r *XssMatchSet) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -89,5 +95,8 @@ func (r *XssMatchSet) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/waf/aws-waf-xssmatchset_fieldtomatch.go b/cloudformation/waf/aws-waf-xssmatchset_fieldtomatch.go index 945cb483e1..29e2098df5 100644 --- a/cloudformation/waf/aws-waf-xssmatchset_fieldtomatch.go +++ b/cloudformation/waf/aws-waf-xssmatchset_fieldtomatch.go @@ -26,6 +26,9 @@ type XssMatchSet_FieldToMatch struct { // 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 diff --git a/cloudformation/waf/aws-waf-xssmatchset_xssmatchtuple.go b/cloudformation/waf/aws-waf-xssmatchset_xssmatchtuple.go index 849816e797..aef45e58b8 100644 --- a/cloudformation/waf/aws-waf-xssmatchset_xssmatchtuple.go +++ b/cloudformation/waf/aws-waf-xssmatchset_xssmatchtuple.go @@ -26,6 +26,9 @@ type XssMatchSet_XssMatchTuple struct { // 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 diff --git a/cloudformation/wafregional/aws-wafregional-bytematchset.go b/cloudformation/wafregional/aws-wafregional-bytematchset.go index 2550ac2508..a617ce2c51 100644 --- a/cloudformation/wafregional/aws-wafregional-bytematchset.go +++ b/cloudformation/wafregional/aws-wafregional-bytematchset.go @@ -30,6 +30,9 @@ type ByteMatchSet struct { // 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 @@ -47,12 +50,14 @@ func (r ByteMatchSet) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -66,6 +71,7 @@ func (r *ByteMatchSet) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -89,5 +95,8 @@ func (r *ByteMatchSet) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/wafregional/aws-wafregional-bytematchset_bytematchtuple.go b/cloudformation/wafregional/aws-wafregional-bytematchset_bytematchtuple.go index 7fccf6275d..eefe44557d 100644 --- a/cloudformation/wafregional/aws-wafregional-bytematchset_bytematchtuple.go +++ b/cloudformation/wafregional/aws-wafregional-bytematchset_bytematchtuple.go @@ -41,6 +41,9 @@ type ByteMatchSet_ByteMatchTuple struct { // 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 diff --git a/cloudformation/wafregional/aws-wafregional-bytematchset_fieldtomatch.go b/cloudformation/wafregional/aws-wafregional-bytematchset_fieldtomatch.go index efbfafb29e..23fb80f055 100644 --- a/cloudformation/wafregional/aws-wafregional-bytematchset_fieldtomatch.go +++ b/cloudformation/wafregional/aws-wafregional-bytematchset_fieldtomatch.go @@ -26,6 +26,9 @@ type ByteMatchSet_FieldToMatch struct { // 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 diff --git a/cloudformation/wafregional/aws-wafregional-geomatchset.go b/cloudformation/wafregional/aws-wafregional-geomatchset.go index e0502e7505..f7932344f4 100644 --- a/cloudformation/wafregional/aws-wafregional-geomatchset.go +++ b/cloudformation/wafregional/aws-wafregional-geomatchset.go @@ -30,6 +30,9 @@ type GeoMatchSet struct { // 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 @@ -47,12 +50,14 @@ func (r GeoMatchSet) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -66,6 +71,7 @@ func (r *GeoMatchSet) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -89,5 +95,8 @@ func (r *GeoMatchSet) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/wafregional/aws-wafregional-geomatchset_geomatchconstraint.go b/cloudformation/wafregional/aws-wafregional-geomatchset_geomatchconstraint.go index f3dd61a4c3..4f9ec901cb 100644 --- a/cloudformation/wafregional/aws-wafregional-geomatchset_geomatchconstraint.go +++ b/cloudformation/wafregional/aws-wafregional-geomatchset_geomatchconstraint.go @@ -26,6 +26,9 @@ type GeoMatchSet_GeoMatchConstraint struct { // 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 diff --git a/cloudformation/wafregional/aws-wafregional-ipset.go b/cloudformation/wafregional/aws-wafregional-ipset.go index d593b64b26..2cea004ae4 100644 --- a/cloudformation/wafregional/aws-wafregional-ipset.go +++ b/cloudformation/wafregional/aws-wafregional-ipset.go @@ -30,6 +30,9 @@ type IPSet struct { // 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 @@ -47,12 +50,14 @@ func (r IPSet) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -66,6 +71,7 @@ func (r *IPSet) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -89,5 +95,8 @@ func (r *IPSet) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/wafregional/aws-wafregional-ipset_ipsetdescriptor.go b/cloudformation/wafregional/aws-wafregional-ipset_ipsetdescriptor.go index ec2d303f90..869cbc1599 100644 --- a/cloudformation/wafregional/aws-wafregional-ipset_ipsetdescriptor.go +++ b/cloudformation/wafregional/aws-wafregional-ipset_ipsetdescriptor.go @@ -26,6 +26,9 @@ type IPSet_IPSetDescriptor struct { // 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 diff --git a/cloudformation/wafregional/aws-wafregional-ratebasedrule.go b/cloudformation/wafregional/aws-wafregional-ratebasedrule.go index 53bb3005c9..ce987ea5c5 100644 --- a/cloudformation/wafregional/aws-wafregional-ratebasedrule.go +++ b/cloudformation/wafregional/aws-wafregional-ratebasedrule.go @@ -45,6 +45,9 @@ type RateBasedRule struct { // 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 @@ -62,12 +65,14 @@ func (r RateBasedRule) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -81,6 +86,7 @@ func (r *RateBasedRule) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -104,5 +110,8 @@ func (r *RateBasedRule) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/wafregional/aws-wafregional-ratebasedrule_predicate.go b/cloudformation/wafregional/aws-wafregional-ratebasedrule_predicate.go index 27caf2f169..faa045984f 100644 --- a/cloudformation/wafregional/aws-wafregional-ratebasedrule_predicate.go +++ b/cloudformation/wafregional/aws-wafregional-ratebasedrule_predicate.go @@ -31,6 +31,9 @@ type RateBasedRule_Predicate struct { // 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 diff --git a/cloudformation/wafregional/aws-wafregional-regexpatternset.go b/cloudformation/wafregional/aws-wafregional-regexpatternset.go index e7bed7bb71..6a46a5da5d 100644 --- a/cloudformation/wafregional/aws-wafregional-regexpatternset.go +++ b/cloudformation/wafregional/aws-wafregional-regexpatternset.go @@ -30,6 +30,9 @@ type RegexPatternSet struct { // 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 @@ -47,12 +50,14 @@ func (r RegexPatternSet) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -66,6 +71,7 @@ func (r *RegexPatternSet) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -89,5 +95,8 @@ func (r *RegexPatternSet) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/wafregional/aws-wafregional-rule.go b/cloudformation/wafregional/aws-wafregional-rule.go index 794e888f33..26c291642e 100644 --- a/cloudformation/wafregional/aws-wafregional-rule.go +++ b/cloudformation/wafregional/aws-wafregional-rule.go @@ -35,6 +35,9 @@ type Rule struct { // 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 @@ -52,12 +55,14 @@ func (r Rule) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -71,6 +76,7 @@ func (r *Rule) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -94,5 +100,8 @@ func (r *Rule) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/wafregional/aws-wafregional-rule_predicate.go b/cloudformation/wafregional/aws-wafregional-rule_predicate.go index 09c03d7038..f161cc3275 100644 --- a/cloudformation/wafregional/aws-wafregional-rule_predicate.go +++ b/cloudformation/wafregional/aws-wafregional-rule_predicate.go @@ -31,6 +31,9 @@ type Rule_Predicate struct { // 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 diff --git a/cloudformation/wafregional/aws-wafregional-sizeconstraintset.go b/cloudformation/wafregional/aws-wafregional-sizeconstraintset.go index e8360a8744..71fb747063 100644 --- a/cloudformation/wafregional/aws-wafregional-sizeconstraintset.go +++ b/cloudformation/wafregional/aws-wafregional-sizeconstraintset.go @@ -30,6 +30,9 @@ type SizeConstraintSet struct { // 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 @@ -47,12 +50,14 @@ func (r SizeConstraintSet) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -66,6 +71,7 @@ func (r *SizeConstraintSet) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -89,5 +95,8 @@ func (r *SizeConstraintSet) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/wafregional/aws-wafregional-sizeconstraintset_fieldtomatch.go b/cloudformation/wafregional/aws-wafregional-sizeconstraintset_fieldtomatch.go index df9b3dcdc0..6662a4ba88 100644 --- a/cloudformation/wafregional/aws-wafregional-sizeconstraintset_fieldtomatch.go +++ b/cloudformation/wafregional/aws-wafregional-sizeconstraintset_fieldtomatch.go @@ -26,6 +26,9 @@ type SizeConstraintSet_FieldToMatch struct { // 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 diff --git a/cloudformation/wafregional/aws-wafregional-sizeconstraintset_sizeconstraint.go b/cloudformation/wafregional/aws-wafregional-sizeconstraintset_sizeconstraint.go index 552a2f51a5..dcaa81b6ec 100644 --- a/cloudformation/wafregional/aws-wafregional-sizeconstraintset_sizeconstraint.go +++ b/cloudformation/wafregional/aws-wafregional-sizeconstraintset_sizeconstraint.go @@ -36,6 +36,9 @@ type SizeConstraintSet_SizeConstraint struct { // 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 diff --git a/cloudformation/wafregional/aws-wafregional-sqlinjectionmatchset.go b/cloudformation/wafregional/aws-wafregional-sqlinjectionmatchset.go index ff1a132494..df76b7e786 100644 --- a/cloudformation/wafregional/aws-wafregional-sqlinjectionmatchset.go +++ b/cloudformation/wafregional/aws-wafregional-sqlinjectionmatchset.go @@ -30,6 +30,9 @@ type SqlInjectionMatchSet struct { // 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 @@ -47,12 +50,14 @@ func (r SqlInjectionMatchSet) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -66,6 +71,7 @@ func (r *SqlInjectionMatchSet) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -89,5 +95,8 @@ func (r *SqlInjectionMatchSet) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/wafregional/aws-wafregional-sqlinjectionmatchset_fieldtomatch.go b/cloudformation/wafregional/aws-wafregional-sqlinjectionmatchset_fieldtomatch.go index 01e374d931..f8806eabf4 100644 --- a/cloudformation/wafregional/aws-wafregional-sqlinjectionmatchset_fieldtomatch.go +++ b/cloudformation/wafregional/aws-wafregional-sqlinjectionmatchset_fieldtomatch.go @@ -26,6 +26,9 @@ type SqlInjectionMatchSet_FieldToMatch struct { // 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 diff --git a/cloudformation/wafregional/aws-wafregional-sqlinjectionmatchset_sqlinjectionmatchtuple.go b/cloudformation/wafregional/aws-wafregional-sqlinjectionmatchset_sqlinjectionmatchtuple.go index b4cd8d9126..16a067ed49 100644 --- a/cloudformation/wafregional/aws-wafregional-sqlinjectionmatchset_sqlinjectionmatchtuple.go +++ b/cloudformation/wafregional/aws-wafregional-sqlinjectionmatchset_sqlinjectionmatchtuple.go @@ -26,6 +26,9 @@ type SqlInjectionMatchSet_SqlInjectionMatchTuple struct { // 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 diff --git a/cloudformation/wafregional/aws-wafregional-webacl.go b/cloudformation/wafregional/aws-wafregional-webacl.go index 233a9958e2..a0220042af 100644 --- a/cloudformation/wafregional/aws-wafregional-webacl.go +++ b/cloudformation/wafregional/aws-wafregional-webacl.go @@ -40,6 +40,9 @@ type WebACL struct { // 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 @@ -57,12 +60,14 @@ func (r WebACL) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -76,6 +81,7 @@ func (r *WebACL) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -99,5 +105,8 @@ func (r *WebACL) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/wafregional/aws-wafregional-webacl_action.go b/cloudformation/wafregional/aws-wafregional-webacl_action.go index fb9d72a146..ea78e38d47 100644 --- a/cloudformation/wafregional/aws-wafregional-webacl_action.go +++ b/cloudformation/wafregional/aws-wafregional-webacl_action.go @@ -21,6 +21,9 @@ type WebACL_Action struct { // 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 diff --git a/cloudformation/wafregional/aws-wafregional-webacl_rule.go b/cloudformation/wafregional/aws-wafregional-webacl_rule.go index 9ab6ed71f3..6168b12cd4 100644 --- a/cloudformation/wafregional/aws-wafregional-webacl_rule.go +++ b/cloudformation/wafregional/aws-wafregional-webacl_rule.go @@ -31,6 +31,9 @@ type WebACL_Rule struct { // 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 diff --git a/cloudformation/wafregional/aws-wafregional-webaclassociation.go b/cloudformation/wafregional/aws-wafregional-webaclassociation.go index 82e857f4a3..3223384753 100644 --- a/cloudformation/wafregional/aws-wafregional-webaclassociation.go +++ b/cloudformation/wafregional/aws-wafregional-webaclassociation.go @@ -30,6 +30,9 @@ type WebACLAssociation struct { // 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 @@ -47,12 +50,14 @@ func (r WebACLAssociation) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -66,6 +71,7 @@ func (r *WebACLAssociation) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -89,5 +95,8 @@ func (r *WebACLAssociation) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/wafregional/aws-wafregional-xssmatchset.go b/cloudformation/wafregional/aws-wafregional-xssmatchset.go index 5b22e83a2e..0216e942d5 100644 --- a/cloudformation/wafregional/aws-wafregional-xssmatchset.go +++ b/cloudformation/wafregional/aws-wafregional-xssmatchset.go @@ -30,6 +30,9 @@ type XssMatchSet struct { // 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 @@ -47,12 +50,14 @@ func (r XssMatchSet) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -66,6 +71,7 @@ func (r *XssMatchSet) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -89,5 +95,8 @@ func (r *XssMatchSet) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/wafregional/aws-wafregional-xssmatchset_fieldtomatch.go b/cloudformation/wafregional/aws-wafregional-xssmatchset_fieldtomatch.go index 34d6ed7b7d..4e9ac74ad4 100644 --- a/cloudformation/wafregional/aws-wafregional-xssmatchset_fieldtomatch.go +++ b/cloudformation/wafregional/aws-wafregional-xssmatchset_fieldtomatch.go @@ -26,6 +26,9 @@ type XssMatchSet_FieldToMatch struct { // 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 diff --git a/cloudformation/wafregional/aws-wafregional-xssmatchset_xssmatchtuple.go b/cloudformation/wafregional/aws-wafregional-xssmatchset_xssmatchtuple.go index 5d6b5dd6a9..0a053d49fe 100644 --- a/cloudformation/wafregional/aws-wafregional-xssmatchset_xssmatchtuple.go +++ b/cloudformation/wafregional/aws-wafregional-xssmatchset_xssmatchtuple.go @@ -26,6 +26,9 @@ type XssMatchSet_XssMatchTuple struct { // 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 diff --git a/cloudformation/wafv2/aws-wafv2-ipset.go b/cloudformation/wafv2/aws-wafv2-ipset.go index 57d80a15a3..cba076202c 100644 --- a/cloudformation/wafv2/aws-wafv2-ipset.go +++ b/cloudformation/wafv2/aws-wafv2-ipset.go @@ -13,7 +13,7 @@ import ( type IPSet struct { // Addresses AWS CloudFormation Property - // Required: false + // Required: true // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-ipset.html#cfn-wafv2-ipset-addresses Addresses *IPSet_IPAddresses `json:"Addresses,omitempty"` @@ -23,12 +23,12 @@ type IPSet struct { Description string `json:"Description,omitempty"` // IPAddressVersion AWS CloudFormation Property - // Required: false + // Required: true // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-ipset.html#cfn-wafv2-ipset-ipaddressversion IPAddressVersion string `json:"IPAddressVersion,omitempty"` // Name AWS CloudFormation Property - // Required: true + // Required: false // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-ipset.html#cfn-wafv2-ipset-name Name string `json:"Name,omitempty"` @@ -50,6 +50,9 @@ type IPSet struct { // 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 @@ -67,12 +70,14 @@ func (r IPSet) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -86,6 +91,7 @@ func (r *IPSet) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -109,5 +115,8 @@ func (r *IPSet) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/wafv2/aws-wafv2-ipset_ipaddresses.go b/cloudformation/wafv2/aws-wafv2-ipset_ipaddresses.go index b1feb77717..095d37d760 100644 --- a/cloudformation/wafv2/aws-wafv2-ipset_ipaddresses.go +++ b/cloudformation/wafv2/aws-wafv2-ipset_ipaddresses.go @@ -21,6 +21,9 @@ type IPSet_IPAddresses struct { // 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 diff --git a/cloudformation/wafv2/aws-wafv2-ipset_taglist.go b/cloudformation/wafv2/aws-wafv2-ipset_taglist.go index 5d3885424e..a2c24a40c3 100644 --- a/cloudformation/wafv2/aws-wafv2-ipset_taglist.go +++ b/cloudformation/wafv2/aws-wafv2-ipset_taglist.go @@ -22,6 +22,9 @@ type IPSet_TagList struct { // 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 diff --git a/cloudformation/wafv2/aws-wafv2-regexpatternset.go b/cloudformation/wafv2/aws-wafv2-regexpatternset.go index 6d05ccf776..23a8da7c00 100644 --- a/cloudformation/wafv2/aws-wafv2-regexpatternset.go +++ b/cloudformation/wafv2/aws-wafv2-regexpatternset.go @@ -18,12 +18,12 @@ type RegexPatternSet struct { Description string `json:"Description,omitempty"` // Name AWS CloudFormation Property - // Required: true + // Required: false // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-regexpatternset.html#cfn-wafv2-regexpatternset-name Name string `json:"Name,omitempty"` // RegularExpressionList AWS CloudFormation Property - // Required: false + // Required: true // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-regexpatternset.html#cfn-wafv2-regexpatternset-regularexpressionlist RegularExpressionList *RegexPatternSet_RegularExpressionList `json:"RegularExpressionList,omitempty"` @@ -45,6 +45,9 @@ type RegexPatternSet struct { // 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 @@ -62,12 +65,14 @@ func (r RegexPatternSet) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -81,6 +86,7 @@ func (r *RegexPatternSet) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -104,5 +110,8 @@ func (r *RegexPatternSet) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/wafv2/aws-wafv2-regexpatternset_regex.go b/cloudformation/wafv2/aws-wafv2-regexpatternset_regex.go index 42c25954e2..243361f2f7 100644 --- a/cloudformation/wafv2/aws-wafv2-regexpatternset_regex.go +++ b/cloudformation/wafv2/aws-wafv2-regexpatternset_regex.go @@ -21,6 +21,9 @@ type RegexPatternSet_Regex struct { // 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 diff --git a/cloudformation/wafv2/aws-wafv2-regexpatternset_regularexpressionlist.go b/cloudformation/wafv2/aws-wafv2-regexpatternset_regularexpressionlist.go index eaf26107f8..04c436a6b0 100644 --- a/cloudformation/wafv2/aws-wafv2-regexpatternset_regularexpressionlist.go +++ b/cloudformation/wafv2/aws-wafv2-regexpatternset_regularexpressionlist.go @@ -21,6 +21,9 @@ type RegexPatternSet_RegularExpressionList struct { // 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 diff --git a/cloudformation/wafv2/aws-wafv2-regexpatternset_taglist.go b/cloudformation/wafv2/aws-wafv2-regexpatternset_taglist.go index a928383100..0f480121c8 100644 --- a/cloudformation/wafv2/aws-wafv2-regexpatternset_taglist.go +++ b/cloudformation/wafv2/aws-wafv2-regexpatternset_taglist.go @@ -22,6 +22,9 @@ type RegexPatternSet_TagList struct { // 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 diff --git a/cloudformation/wafv2/aws-wafv2-rulegroup.go b/cloudformation/wafv2/aws-wafv2-rulegroup.go index bdb21f21f6..31865b53b1 100644 --- a/cloudformation/wafv2/aws-wafv2-rulegroup.go +++ b/cloudformation/wafv2/aws-wafv2-rulegroup.go @@ -13,9 +13,9 @@ import ( type RuleGroup struct { // Capacity AWS CloudFormation Property - // Required: false + // Required: true // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-rulegroup.html#cfn-wafv2-rulegroup-capacity - Capacity int `json:"Capacity,omitempty"` + Capacity int `json:"Capacity"` // Description AWS CloudFormation Property // Required: false @@ -23,7 +23,7 @@ type RuleGroup struct { Description string `json:"Description,omitempty"` // Name AWS CloudFormation Property - // Required: true + // Required: false // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-rulegroup.html#cfn-wafv2-rulegroup-name Name string `json:"Name,omitempty"` @@ -43,7 +43,7 @@ type RuleGroup struct { Tags *RuleGroup_TagList `json:"Tags,omitempty"` // VisibilityConfig AWS CloudFormation Property - // Required: false + // Required: true // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-rulegroup.html#cfn-wafv2-rulegroup-visibilityconfig VisibilityConfig *RuleGroup_VisibilityConfig `json:"VisibilityConfig,omitempty"` @@ -55,6 +55,9 @@ type RuleGroup struct { // 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 @@ -72,12 +75,14 @@ func (r RuleGroup) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -91,6 +96,7 @@ func (r *RuleGroup) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -114,5 +120,8 @@ func (r *RuleGroup) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/wafv2/aws-wafv2-rulegroup_allowaction.go b/cloudformation/wafv2/aws-wafv2-rulegroup_allowaction.go index 96ef6dd0a0..968f77aabc 100644 --- a/cloudformation/wafv2/aws-wafv2-rulegroup_allowaction.go +++ b/cloudformation/wafv2/aws-wafv2-rulegroup_allowaction.go @@ -16,6 +16,9 @@ type RuleGroup_AllowAction struct { // 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 diff --git a/cloudformation/wafv2/aws-wafv2-rulegroup_allqueryarguments.go b/cloudformation/wafv2/aws-wafv2-rulegroup_allqueryarguments.go index 889908e980..c5bb06b6b6 100644 --- a/cloudformation/wafv2/aws-wafv2-rulegroup_allqueryarguments.go +++ b/cloudformation/wafv2/aws-wafv2-rulegroup_allqueryarguments.go @@ -16,6 +16,9 @@ type RuleGroup_AllQueryArguments struct { // 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 diff --git a/cloudformation/wafv2/aws-wafv2-rulegroup_andstatementone.go b/cloudformation/wafv2/aws-wafv2-rulegroup_andstatementone.go index 75547369a6..e3c14e841e 100644 --- a/cloudformation/wafv2/aws-wafv2-rulegroup_andstatementone.go +++ b/cloudformation/wafv2/aws-wafv2-rulegroup_andstatementone.go @@ -21,6 +21,9 @@ type RuleGroup_AndStatementOne struct { // 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 diff --git a/cloudformation/wafv2/aws-wafv2-rulegroup_andstatementtwo.go b/cloudformation/wafv2/aws-wafv2-rulegroup_andstatementtwo.go index 3aad5571b8..ac284e7b97 100644 --- a/cloudformation/wafv2/aws-wafv2-rulegroup_andstatementtwo.go +++ b/cloudformation/wafv2/aws-wafv2-rulegroup_andstatementtwo.go @@ -21,6 +21,9 @@ type RuleGroup_AndStatementTwo struct { // 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 diff --git a/cloudformation/wafv2/aws-wafv2-rulegroup_blockaction.go b/cloudformation/wafv2/aws-wafv2-rulegroup_blockaction.go index 2523a68dce..45de83d190 100644 --- a/cloudformation/wafv2/aws-wafv2-rulegroup_blockaction.go +++ b/cloudformation/wafv2/aws-wafv2-rulegroup_blockaction.go @@ -16,6 +16,9 @@ type RuleGroup_BlockAction struct { // 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 diff --git a/cloudformation/wafv2/aws-wafv2-rulegroup_body.go b/cloudformation/wafv2/aws-wafv2-rulegroup_body.go index 6e5fa0e19a..5aea366aeb 100644 --- a/cloudformation/wafv2/aws-wafv2-rulegroup_body.go +++ b/cloudformation/wafv2/aws-wafv2-rulegroup_body.go @@ -16,6 +16,9 @@ type RuleGroup_Body struct { // 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 diff --git a/cloudformation/wafv2/aws-wafv2-rulegroup_bytematchstatement.go b/cloudformation/wafv2/aws-wafv2-rulegroup_bytematchstatement.go index da5a291c00..42cc86fc4c 100644 --- a/cloudformation/wafv2/aws-wafv2-rulegroup_bytematchstatement.go +++ b/cloudformation/wafv2/aws-wafv2-rulegroup_bytematchstatement.go @@ -41,6 +41,9 @@ type RuleGroup_ByteMatchStatement struct { // 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 diff --git a/cloudformation/wafv2/aws-wafv2-rulegroup_countaction.go b/cloudformation/wafv2/aws-wafv2-rulegroup_countaction.go index 07cbfd14af..b417e55e82 100644 --- a/cloudformation/wafv2/aws-wafv2-rulegroup_countaction.go +++ b/cloudformation/wafv2/aws-wafv2-rulegroup_countaction.go @@ -16,6 +16,9 @@ type RuleGroup_CountAction struct { // 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 diff --git a/cloudformation/wafv2/aws-wafv2-rulegroup_countrycodes.go b/cloudformation/wafv2/aws-wafv2-rulegroup_countrycodes.go index fd8137cd37..17eac564fd 100644 --- a/cloudformation/wafv2/aws-wafv2-rulegroup_countrycodes.go +++ b/cloudformation/wafv2/aws-wafv2-rulegroup_countrycodes.go @@ -21,6 +21,9 @@ type RuleGroup_CountryCodes struct { // 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 diff --git a/cloudformation/wafv2/aws-wafv2-rulegroup_fieldtomatch.go b/cloudformation/wafv2/aws-wafv2-rulegroup_fieldtomatch.go index dd9a9f5c21..068c2663ed 100644 --- a/cloudformation/wafv2/aws-wafv2-rulegroup_fieldtomatch.go +++ b/cloudformation/wafv2/aws-wafv2-rulegroup_fieldtomatch.go @@ -51,6 +51,9 @@ type RuleGroup_FieldToMatch struct { // 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 diff --git a/cloudformation/wafv2/aws-wafv2-rulegroup_geomatchstatement.go b/cloudformation/wafv2/aws-wafv2-rulegroup_geomatchstatement.go index 2031a1b9db..5b0821158f 100644 --- a/cloudformation/wafv2/aws-wafv2-rulegroup_geomatchstatement.go +++ b/cloudformation/wafv2/aws-wafv2-rulegroup_geomatchstatement.go @@ -21,6 +21,9 @@ type RuleGroup_GeoMatchStatement struct { // 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 diff --git a/cloudformation/wafv2/aws-wafv2-rulegroup_ipsetreferencestatement.go b/cloudformation/wafv2/aws-wafv2-rulegroup_ipsetreferencestatement.go index f31bce6022..56918afcd7 100644 --- a/cloudformation/wafv2/aws-wafv2-rulegroup_ipsetreferencestatement.go +++ b/cloudformation/wafv2/aws-wafv2-rulegroup_ipsetreferencestatement.go @@ -21,6 +21,9 @@ type RuleGroup_IPSetReferenceStatement struct { // 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 diff --git a/cloudformation/wafv2/aws-wafv2-rulegroup_method.go b/cloudformation/wafv2/aws-wafv2-rulegroup_method.go index 917d38a8ce..d9e28edd90 100644 --- a/cloudformation/wafv2/aws-wafv2-rulegroup_method.go +++ b/cloudformation/wafv2/aws-wafv2-rulegroup_method.go @@ -16,6 +16,9 @@ type RuleGroup_Method struct { // 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 diff --git a/cloudformation/wafv2/aws-wafv2-rulegroup_notstatementone.go b/cloudformation/wafv2/aws-wafv2-rulegroup_notstatementone.go index 63549ae109..12116cc8dc 100644 --- a/cloudformation/wafv2/aws-wafv2-rulegroup_notstatementone.go +++ b/cloudformation/wafv2/aws-wafv2-rulegroup_notstatementone.go @@ -21,6 +21,9 @@ type RuleGroup_NotStatementOne struct { // 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 diff --git a/cloudformation/wafv2/aws-wafv2-rulegroup_notstatementtwo.go b/cloudformation/wafv2/aws-wafv2-rulegroup_notstatementtwo.go index b182911637..52d954fb33 100644 --- a/cloudformation/wafv2/aws-wafv2-rulegroup_notstatementtwo.go +++ b/cloudformation/wafv2/aws-wafv2-rulegroup_notstatementtwo.go @@ -21,6 +21,9 @@ type RuleGroup_NotStatementTwo struct { // 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 diff --git a/cloudformation/wafv2/aws-wafv2-rulegroup_orstatementone.go b/cloudformation/wafv2/aws-wafv2-rulegroup_orstatementone.go index 101fb53486..2b83cecfaf 100644 --- a/cloudformation/wafv2/aws-wafv2-rulegroup_orstatementone.go +++ b/cloudformation/wafv2/aws-wafv2-rulegroup_orstatementone.go @@ -21,6 +21,9 @@ type RuleGroup_OrStatementOne struct { // 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 diff --git a/cloudformation/wafv2/aws-wafv2-rulegroup_orstatementtwo.go b/cloudformation/wafv2/aws-wafv2-rulegroup_orstatementtwo.go index 98161bbe0c..ab26144695 100644 --- a/cloudformation/wafv2/aws-wafv2-rulegroup_orstatementtwo.go +++ b/cloudformation/wafv2/aws-wafv2-rulegroup_orstatementtwo.go @@ -21,6 +21,9 @@ type RuleGroup_OrStatementTwo struct { // 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 diff --git a/cloudformation/wafv2/aws-wafv2-rulegroup_querystring.go b/cloudformation/wafv2/aws-wafv2-rulegroup_querystring.go index 334bf2eafe..3293401867 100644 --- a/cloudformation/wafv2/aws-wafv2-rulegroup_querystring.go +++ b/cloudformation/wafv2/aws-wafv2-rulegroup_querystring.go @@ -16,6 +16,9 @@ type RuleGroup_QueryString struct { // 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 diff --git a/cloudformation/wafv2/aws-wafv2-rulegroup_ratebasedstatementone.go b/cloudformation/wafv2/aws-wafv2-rulegroup_ratebasedstatementone.go index acf6685d7d..c117c47e5f 100644 --- a/cloudformation/wafv2/aws-wafv2-rulegroup_ratebasedstatementone.go +++ b/cloudformation/wafv2/aws-wafv2-rulegroup_ratebasedstatementone.go @@ -31,6 +31,9 @@ type RuleGroup_RateBasedStatementOne struct { // 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 diff --git a/cloudformation/wafv2/aws-wafv2-rulegroup_ratebasedstatementtwo.go b/cloudformation/wafv2/aws-wafv2-rulegroup_ratebasedstatementtwo.go index 9ca8a8b0f3..4b8b8223ec 100644 --- a/cloudformation/wafv2/aws-wafv2-rulegroup_ratebasedstatementtwo.go +++ b/cloudformation/wafv2/aws-wafv2-rulegroup_ratebasedstatementtwo.go @@ -31,6 +31,9 @@ type RuleGroup_RateBasedStatementTwo struct { // 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 diff --git a/cloudformation/wafv2/aws-wafv2-rulegroup_regexpatternsetreferencestatement.go b/cloudformation/wafv2/aws-wafv2-rulegroup_regexpatternsetreferencestatement.go index d6dcbdcd8c..2485df5d88 100644 --- a/cloudformation/wafv2/aws-wafv2-rulegroup_regexpatternsetreferencestatement.go +++ b/cloudformation/wafv2/aws-wafv2-rulegroup_regexpatternsetreferencestatement.go @@ -31,6 +31,9 @@ type RuleGroup_RegexPatternSetReferenceStatement struct { // 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 diff --git a/cloudformation/wafv2/aws-wafv2-rulegroup_rule.go b/cloudformation/wafv2/aws-wafv2-rulegroup_rule.go index bc3d405653..578eeeb319 100644 --- a/cloudformation/wafv2/aws-wafv2-rulegroup_rule.go +++ b/cloudformation/wafv2/aws-wafv2-rulegroup_rule.go @@ -41,6 +41,9 @@ type RuleGroup_Rule struct { // 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 diff --git a/cloudformation/wafv2/aws-wafv2-rulegroup_ruleaction.go b/cloudformation/wafv2/aws-wafv2-rulegroup_ruleaction.go index 934354523c..c03140f080 100644 --- a/cloudformation/wafv2/aws-wafv2-rulegroup_ruleaction.go +++ b/cloudformation/wafv2/aws-wafv2-rulegroup_ruleaction.go @@ -31,6 +31,9 @@ type RuleGroup_RuleAction struct { // 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 diff --git a/cloudformation/wafv2/aws-wafv2-rulegroup_rules.go b/cloudformation/wafv2/aws-wafv2-rulegroup_rules.go index cca67869de..91e95e60ca 100644 --- a/cloudformation/wafv2/aws-wafv2-rulegroup_rules.go +++ b/cloudformation/wafv2/aws-wafv2-rulegroup_rules.go @@ -21,6 +21,9 @@ type RuleGroup_Rules struct { // 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 diff --git a/cloudformation/wafv2/aws-wafv2-rulegroup_singleheader.go b/cloudformation/wafv2/aws-wafv2-rulegroup_singleheader.go index e615123d47..de6de872ff 100644 --- a/cloudformation/wafv2/aws-wafv2-rulegroup_singleheader.go +++ b/cloudformation/wafv2/aws-wafv2-rulegroup_singleheader.go @@ -21,6 +21,9 @@ type RuleGroup_SingleHeader struct { // 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 diff --git a/cloudformation/wafv2/aws-wafv2-rulegroup_singlequeryargument.go b/cloudformation/wafv2/aws-wafv2-rulegroup_singlequeryargument.go index 5623fc4644..4c32725655 100644 --- a/cloudformation/wafv2/aws-wafv2-rulegroup_singlequeryargument.go +++ b/cloudformation/wafv2/aws-wafv2-rulegroup_singlequeryargument.go @@ -21,6 +21,9 @@ type RuleGroup_SingleQueryArgument struct { // 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 diff --git a/cloudformation/wafv2/aws-wafv2-rulegroup_sizeconstraintstatement.go b/cloudformation/wafv2/aws-wafv2-rulegroup_sizeconstraintstatement.go index f0640b4d7a..a1c41866e8 100644 --- a/cloudformation/wafv2/aws-wafv2-rulegroup_sizeconstraintstatement.go +++ b/cloudformation/wafv2/aws-wafv2-rulegroup_sizeconstraintstatement.go @@ -36,6 +36,9 @@ type RuleGroup_SizeConstraintStatement struct { // 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 diff --git a/cloudformation/wafv2/aws-wafv2-rulegroup_sqlimatchstatement.go b/cloudformation/wafv2/aws-wafv2-rulegroup_sqlimatchstatement.go index 05e2e4c475..a4e5599f7e 100644 --- a/cloudformation/wafv2/aws-wafv2-rulegroup_sqlimatchstatement.go +++ b/cloudformation/wafv2/aws-wafv2-rulegroup_sqlimatchstatement.go @@ -26,6 +26,9 @@ type RuleGroup_SqliMatchStatement struct { // 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 diff --git a/cloudformation/wafv2/aws-wafv2-rulegroup_statementone.go b/cloudformation/wafv2/aws-wafv2-rulegroup_statementone.go index f76a3402e1..43a5182d57 100644 --- a/cloudformation/wafv2/aws-wafv2-rulegroup_statementone.go +++ b/cloudformation/wafv2/aws-wafv2-rulegroup_statementone.go @@ -71,6 +71,9 @@ type RuleGroup_StatementOne struct { // 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 diff --git a/cloudformation/wafv2/aws-wafv2-rulegroup_statementthree.go b/cloudformation/wafv2/aws-wafv2-rulegroup_statementthree.go index e7ced8177c..05f452f32d 100644 --- a/cloudformation/wafv2/aws-wafv2-rulegroup_statementthree.go +++ b/cloudformation/wafv2/aws-wafv2-rulegroup_statementthree.go @@ -51,6 +51,9 @@ type RuleGroup_StatementThree struct { // 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 diff --git a/cloudformation/wafv2/aws-wafv2-rulegroup_statementthrees.go b/cloudformation/wafv2/aws-wafv2-rulegroup_statementthrees.go index 17aab740bd..68fc28598b 100644 --- a/cloudformation/wafv2/aws-wafv2-rulegroup_statementthrees.go +++ b/cloudformation/wafv2/aws-wafv2-rulegroup_statementthrees.go @@ -21,6 +21,9 @@ type RuleGroup_StatementThrees struct { // 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 diff --git a/cloudformation/wafv2/aws-wafv2-rulegroup_statementtwo.go b/cloudformation/wafv2/aws-wafv2-rulegroup_statementtwo.go index 49c598093c..62be1537f2 100644 --- a/cloudformation/wafv2/aws-wafv2-rulegroup_statementtwo.go +++ b/cloudformation/wafv2/aws-wafv2-rulegroup_statementtwo.go @@ -71,6 +71,9 @@ type RuleGroup_StatementTwo struct { // 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 diff --git a/cloudformation/wafv2/aws-wafv2-rulegroup_statementtwos.go b/cloudformation/wafv2/aws-wafv2-rulegroup_statementtwos.go index 58dad601f0..c2d9fa8eec 100644 --- a/cloudformation/wafv2/aws-wafv2-rulegroup_statementtwos.go +++ b/cloudformation/wafv2/aws-wafv2-rulegroup_statementtwos.go @@ -21,6 +21,9 @@ type RuleGroup_StatementTwos struct { // 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 diff --git a/cloudformation/wafv2/aws-wafv2-rulegroup_taglist.go b/cloudformation/wafv2/aws-wafv2-rulegroup_taglist.go index 3d12406914..3e3d628f31 100644 --- a/cloudformation/wafv2/aws-wafv2-rulegroup_taglist.go +++ b/cloudformation/wafv2/aws-wafv2-rulegroup_taglist.go @@ -22,6 +22,9 @@ type RuleGroup_TagList struct { // 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 diff --git a/cloudformation/wafv2/aws-wafv2-rulegroup_texttransformation.go b/cloudformation/wafv2/aws-wafv2-rulegroup_texttransformation.go index 95d23c6185..1399154dd5 100644 --- a/cloudformation/wafv2/aws-wafv2-rulegroup_texttransformation.go +++ b/cloudformation/wafv2/aws-wafv2-rulegroup_texttransformation.go @@ -26,6 +26,9 @@ type RuleGroup_TextTransformation struct { // 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 diff --git a/cloudformation/wafv2/aws-wafv2-rulegroup_texttransformations.go b/cloudformation/wafv2/aws-wafv2-rulegroup_texttransformations.go index c13f81820b..30d9215bfa 100644 --- a/cloudformation/wafv2/aws-wafv2-rulegroup_texttransformations.go +++ b/cloudformation/wafv2/aws-wafv2-rulegroup_texttransformations.go @@ -21,6 +21,9 @@ type RuleGroup_TextTransformations struct { // 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 diff --git a/cloudformation/wafv2/aws-wafv2-rulegroup_uripath.go b/cloudformation/wafv2/aws-wafv2-rulegroup_uripath.go index 9d00e710f7..94c382507b 100644 --- a/cloudformation/wafv2/aws-wafv2-rulegroup_uripath.go +++ b/cloudformation/wafv2/aws-wafv2-rulegroup_uripath.go @@ -16,6 +16,9 @@ type RuleGroup_UriPath struct { // 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 diff --git a/cloudformation/wafv2/aws-wafv2-rulegroup_visibilityconfig.go b/cloudformation/wafv2/aws-wafv2-rulegroup_visibilityconfig.go index c557b51b2b..488ae391e4 100644 --- a/cloudformation/wafv2/aws-wafv2-rulegroup_visibilityconfig.go +++ b/cloudformation/wafv2/aws-wafv2-rulegroup_visibilityconfig.go @@ -31,6 +31,9 @@ type RuleGroup_VisibilityConfig struct { // 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 diff --git a/cloudformation/wafv2/aws-wafv2-rulegroup_xssmatchstatement.go b/cloudformation/wafv2/aws-wafv2-rulegroup_xssmatchstatement.go index 952c24b936..6731830007 100644 --- a/cloudformation/wafv2/aws-wafv2-rulegroup_xssmatchstatement.go +++ b/cloudformation/wafv2/aws-wafv2-rulegroup_xssmatchstatement.go @@ -26,6 +26,9 @@ type RuleGroup_XssMatchStatement struct { // 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 diff --git a/cloudformation/wafv2/aws-wafv2-webacl.go b/cloudformation/wafv2/aws-wafv2-webacl.go index 67598eb56c..723b4c3237 100644 --- a/cloudformation/wafv2/aws-wafv2-webacl.go +++ b/cloudformation/wafv2/aws-wafv2-webacl.go @@ -13,7 +13,7 @@ import ( type WebACL struct { // DefaultAction AWS CloudFormation Property - // Required: false + // Required: true // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-webacl.html#cfn-wafv2-webacl-defaultaction DefaultAction *WebACL_DefaultAction `json:"DefaultAction,omitempty"` @@ -23,7 +23,7 @@ type WebACL struct { Description string `json:"Description,omitempty"` // Name AWS CloudFormation Property - // Required: true + // Required: false // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-webacl.html#cfn-wafv2-webacl-name Name string `json:"Name,omitempty"` @@ -43,7 +43,7 @@ type WebACL struct { Tags *WebACL_TagList `json:"Tags,omitempty"` // VisibilityConfig AWS CloudFormation Property - // Required: false + // Required: true // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-webacl.html#cfn-wafv2-webacl-visibilityconfig VisibilityConfig *WebACL_VisibilityConfig `json:"VisibilityConfig,omitempty"` @@ -55,6 +55,9 @@ type WebACL struct { // 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 @@ -72,12 +75,14 @@ func (r WebACL) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -91,6 +96,7 @@ func (r *WebACL) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -114,5 +120,8 @@ func (r *WebACL) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/wafv2/aws-wafv2-webacl_allowaction.go b/cloudformation/wafv2/aws-wafv2-webacl_allowaction.go index b36590bb30..c34eb62cf4 100644 --- a/cloudformation/wafv2/aws-wafv2-webacl_allowaction.go +++ b/cloudformation/wafv2/aws-wafv2-webacl_allowaction.go @@ -16,6 +16,9 @@ type WebACL_AllowAction struct { // 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 diff --git a/cloudformation/wafv2/aws-wafv2-webacl_allqueryarguments.go b/cloudformation/wafv2/aws-wafv2-webacl_allqueryarguments.go index b919e0dc1d..0dbbae1ab2 100644 --- a/cloudformation/wafv2/aws-wafv2-webacl_allqueryarguments.go +++ b/cloudformation/wafv2/aws-wafv2-webacl_allqueryarguments.go @@ -16,6 +16,9 @@ type WebACL_AllQueryArguments struct { // 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 diff --git a/cloudformation/wafv2/aws-wafv2-webacl_andstatementone.go b/cloudformation/wafv2/aws-wafv2-webacl_andstatementone.go index 489346b8a4..e486710910 100644 --- a/cloudformation/wafv2/aws-wafv2-webacl_andstatementone.go +++ b/cloudformation/wafv2/aws-wafv2-webacl_andstatementone.go @@ -21,6 +21,9 @@ type WebACL_AndStatementOne struct { // 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 diff --git a/cloudformation/wafv2/aws-wafv2-webacl_andstatementtwo.go b/cloudformation/wafv2/aws-wafv2-webacl_andstatementtwo.go index cd0a018818..a192d14bfa 100644 --- a/cloudformation/wafv2/aws-wafv2-webacl_andstatementtwo.go +++ b/cloudformation/wafv2/aws-wafv2-webacl_andstatementtwo.go @@ -21,6 +21,9 @@ type WebACL_AndStatementTwo struct { // 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 diff --git a/cloudformation/wafv2/aws-wafv2-webacl_blockaction.go b/cloudformation/wafv2/aws-wafv2-webacl_blockaction.go index 3469658225..cbc9c40eba 100644 --- a/cloudformation/wafv2/aws-wafv2-webacl_blockaction.go +++ b/cloudformation/wafv2/aws-wafv2-webacl_blockaction.go @@ -16,6 +16,9 @@ type WebACL_BlockAction struct { // 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 diff --git a/cloudformation/wafv2/aws-wafv2-webacl_body.go b/cloudformation/wafv2/aws-wafv2-webacl_body.go index 73959779f0..4c5dd4ff2a 100644 --- a/cloudformation/wafv2/aws-wafv2-webacl_body.go +++ b/cloudformation/wafv2/aws-wafv2-webacl_body.go @@ -16,6 +16,9 @@ type WebACL_Body struct { // 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 diff --git a/cloudformation/wafv2/aws-wafv2-webacl_bytematchstatement.go b/cloudformation/wafv2/aws-wafv2-webacl_bytematchstatement.go index 6c8e5c77d5..620c967b61 100644 --- a/cloudformation/wafv2/aws-wafv2-webacl_bytematchstatement.go +++ b/cloudformation/wafv2/aws-wafv2-webacl_bytematchstatement.go @@ -41,6 +41,9 @@ type WebACL_ByteMatchStatement struct { // 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 diff --git a/cloudformation/wafv2/aws-wafv2-webacl_countaction.go b/cloudformation/wafv2/aws-wafv2-webacl_countaction.go index bdce98ac22..43a04ade22 100644 --- a/cloudformation/wafv2/aws-wafv2-webacl_countaction.go +++ b/cloudformation/wafv2/aws-wafv2-webacl_countaction.go @@ -16,6 +16,9 @@ type WebACL_CountAction struct { // 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 diff --git a/cloudformation/wafv2/aws-wafv2-webacl_countrycodes.go b/cloudformation/wafv2/aws-wafv2-webacl_countrycodes.go index eed8188814..48542360b2 100644 --- a/cloudformation/wafv2/aws-wafv2-webacl_countrycodes.go +++ b/cloudformation/wafv2/aws-wafv2-webacl_countrycodes.go @@ -21,6 +21,9 @@ type WebACL_CountryCodes struct { // 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 diff --git a/cloudformation/wafv2/aws-wafv2-webacl_defaultaction.go b/cloudformation/wafv2/aws-wafv2-webacl_defaultaction.go index 9f17784cbc..9d5af76e9b 100644 --- a/cloudformation/wafv2/aws-wafv2-webacl_defaultaction.go +++ b/cloudformation/wafv2/aws-wafv2-webacl_defaultaction.go @@ -26,6 +26,9 @@ type WebACL_DefaultAction struct { // 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 diff --git a/cloudformation/wafv2/aws-wafv2-webacl_excludedrule.go b/cloudformation/wafv2/aws-wafv2-webacl_excludedrule.go index 000e6f7e3d..992d1c32d9 100644 --- a/cloudformation/wafv2/aws-wafv2-webacl_excludedrule.go +++ b/cloudformation/wafv2/aws-wafv2-webacl_excludedrule.go @@ -21,6 +21,9 @@ type WebACL_ExcludedRule struct { // 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 diff --git a/cloudformation/wafv2/aws-wafv2-webacl_excludedrules.go b/cloudformation/wafv2/aws-wafv2-webacl_excludedrules.go index 3a39b88f10..980faca1e8 100644 --- a/cloudformation/wafv2/aws-wafv2-webacl_excludedrules.go +++ b/cloudformation/wafv2/aws-wafv2-webacl_excludedrules.go @@ -21,6 +21,9 @@ type WebACL_ExcludedRules struct { // 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 diff --git a/cloudformation/wafv2/aws-wafv2-webacl_fieldtomatch.go b/cloudformation/wafv2/aws-wafv2-webacl_fieldtomatch.go index a4a47b5a01..4a4c16ffd0 100644 --- a/cloudformation/wafv2/aws-wafv2-webacl_fieldtomatch.go +++ b/cloudformation/wafv2/aws-wafv2-webacl_fieldtomatch.go @@ -51,6 +51,9 @@ type WebACL_FieldToMatch struct { // 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 diff --git a/cloudformation/wafv2/aws-wafv2-webacl_geomatchstatement.go b/cloudformation/wafv2/aws-wafv2-webacl_geomatchstatement.go index 97a7006c19..1ad71d6997 100644 --- a/cloudformation/wafv2/aws-wafv2-webacl_geomatchstatement.go +++ b/cloudformation/wafv2/aws-wafv2-webacl_geomatchstatement.go @@ -21,6 +21,9 @@ type WebACL_GeoMatchStatement struct { // 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 diff --git a/cloudformation/wafv2/aws-wafv2-webacl_ipsetreferencestatement.go b/cloudformation/wafv2/aws-wafv2-webacl_ipsetreferencestatement.go index 8505e42f38..1b78075db8 100644 --- a/cloudformation/wafv2/aws-wafv2-webacl_ipsetreferencestatement.go +++ b/cloudformation/wafv2/aws-wafv2-webacl_ipsetreferencestatement.go @@ -21,6 +21,9 @@ type WebACL_IPSetReferenceStatement struct { // 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 diff --git a/cloudformation/wafv2/aws-wafv2-webacl_managedrulegroupstatement.go b/cloudformation/wafv2/aws-wafv2-webacl_managedrulegroupstatement.go index 6e1dc73e27..119157c3b6 100644 --- a/cloudformation/wafv2/aws-wafv2-webacl_managedrulegroupstatement.go +++ b/cloudformation/wafv2/aws-wafv2-webacl_managedrulegroupstatement.go @@ -31,6 +31,9 @@ type WebACL_ManagedRuleGroupStatement struct { // 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 diff --git a/cloudformation/wafv2/aws-wafv2-webacl_method.go b/cloudformation/wafv2/aws-wafv2-webacl_method.go index 6ca123284c..4f76a60a3d 100644 --- a/cloudformation/wafv2/aws-wafv2-webacl_method.go +++ b/cloudformation/wafv2/aws-wafv2-webacl_method.go @@ -16,6 +16,9 @@ type WebACL_Method struct { // 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 diff --git a/cloudformation/wafv2/aws-wafv2-webacl_noneaction.go b/cloudformation/wafv2/aws-wafv2-webacl_noneaction.go index 3cb723d170..3a0b14fd35 100644 --- a/cloudformation/wafv2/aws-wafv2-webacl_noneaction.go +++ b/cloudformation/wafv2/aws-wafv2-webacl_noneaction.go @@ -16,6 +16,9 @@ type WebACL_NoneAction struct { // 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 diff --git a/cloudformation/wafv2/aws-wafv2-webacl_notstatementone.go b/cloudformation/wafv2/aws-wafv2-webacl_notstatementone.go index 5e8050f583..ffd2a64160 100644 --- a/cloudformation/wafv2/aws-wafv2-webacl_notstatementone.go +++ b/cloudformation/wafv2/aws-wafv2-webacl_notstatementone.go @@ -21,6 +21,9 @@ type WebACL_NotStatementOne struct { // 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 diff --git a/cloudformation/wafv2/aws-wafv2-webacl_notstatementtwo.go b/cloudformation/wafv2/aws-wafv2-webacl_notstatementtwo.go index 484fc78b1e..75270728ea 100644 --- a/cloudformation/wafv2/aws-wafv2-webacl_notstatementtwo.go +++ b/cloudformation/wafv2/aws-wafv2-webacl_notstatementtwo.go @@ -21,6 +21,9 @@ type WebACL_NotStatementTwo struct { // 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 diff --git a/cloudformation/wafv2/aws-wafv2-webacl_orstatementone.go b/cloudformation/wafv2/aws-wafv2-webacl_orstatementone.go index f53e2dfc51..fad8d562c4 100644 --- a/cloudformation/wafv2/aws-wafv2-webacl_orstatementone.go +++ b/cloudformation/wafv2/aws-wafv2-webacl_orstatementone.go @@ -21,6 +21,9 @@ type WebACL_OrStatementOne struct { // 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 diff --git a/cloudformation/wafv2/aws-wafv2-webacl_orstatementtwo.go b/cloudformation/wafv2/aws-wafv2-webacl_orstatementtwo.go index 1a64bcab67..d169eed940 100644 --- a/cloudformation/wafv2/aws-wafv2-webacl_orstatementtwo.go +++ b/cloudformation/wafv2/aws-wafv2-webacl_orstatementtwo.go @@ -21,6 +21,9 @@ type WebACL_OrStatementTwo struct { // 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 diff --git a/cloudformation/wafv2/aws-wafv2-webacl_overrideaction.go b/cloudformation/wafv2/aws-wafv2-webacl_overrideaction.go index 6560b682a7..c34ba0ed56 100644 --- a/cloudformation/wafv2/aws-wafv2-webacl_overrideaction.go +++ b/cloudformation/wafv2/aws-wafv2-webacl_overrideaction.go @@ -26,6 +26,9 @@ type WebACL_OverrideAction struct { // 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 diff --git a/cloudformation/wafv2/aws-wafv2-webacl_querystring.go b/cloudformation/wafv2/aws-wafv2-webacl_querystring.go index 8233c0828f..0745c1ae06 100644 --- a/cloudformation/wafv2/aws-wafv2-webacl_querystring.go +++ b/cloudformation/wafv2/aws-wafv2-webacl_querystring.go @@ -16,6 +16,9 @@ type WebACL_QueryString struct { // 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 diff --git a/cloudformation/wafv2/aws-wafv2-webacl_ratebasedstatementone.go b/cloudformation/wafv2/aws-wafv2-webacl_ratebasedstatementone.go index 5cdf883bc1..f77a20b614 100644 --- a/cloudformation/wafv2/aws-wafv2-webacl_ratebasedstatementone.go +++ b/cloudformation/wafv2/aws-wafv2-webacl_ratebasedstatementone.go @@ -31,6 +31,9 @@ type WebACL_RateBasedStatementOne struct { // 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 diff --git a/cloudformation/wafv2/aws-wafv2-webacl_ratebasedstatementtwo.go b/cloudformation/wafv2/aws-wafv2-webacl_ratebasedstatementtwo.go index 7c72f05dc2..66d0447ba7 100644 --- a/cloudformation/wafv2/aws-wafv2-webacl_ratebasedstatementtwo.go +++ b/cloudformation/wafv2/aws-wafv2-webacl_ratebasedstatementtwo.go @@ -31,6 +31,9 @@ type WebACL_RateBasedStatementTwo struct { // 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 diff --git a/cloudformation/wafv2/aws-wafv2-webacl_regexpatternsetreferencestatement.go b/cloudformation/wafv2/aws-wafv2-webacl_regexpatternsetreferencestatement.go index dcb4c0db98..ad636f2411 100644 --- a/cloudformation/wafv2/aws-wafv2-webacl_regexpatternsetreferencestatement.go +++ b/cloudformation/wafv2/aws-wafv2-webacl_regexpatternsetreferencestatement.go @@ -31,6 +31,9 @@ type WebACL_RegexPatternSetReferenceStatement struct { // 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 diff --git a/cloudformation/wafv2/aws-wafv2-webacl_rule.go b/cloudformation/wafv2/aws-wafv2-webacl_rule.go index 6432a75bbf..a8e2b9ae77 100644 --- a/cloudformation/wafv2/aws-wafv2-webacl_rule.go +++ b/cloudformation/wafv2/aws-wafv2-webacl_rule.go @@ -46,6 +46,9 @@ type WebACL_Rule struct { // 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 diff --git a/cloudformation/wafv2/aws-wafv2-webacl_ruleaction.go b/cloudformation/wafv2/aws-wafv2-webacl_ruleaction.go index 7391c5ee90..8e057f3b1c 100644 --- a/cloudformation/wafv2/aws-wafv2-webacl_ruleaction.go +++ b/cloudformation/wafv2/aws-wafv2-webacl_ruleaction.go @@ -31,6 +31,9 @@ type WebACL_RuleAction struct { // 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 diff --git a/cloudformation/wafv2/aws-wafv2-webacl_rulegroupreferencestatement.go b/cloudformation/wafv2/aws-wafv2-webacl_rulegroupreferencestatement.go index 757c9e78af..48620129ce 100644 --- a/cloudformation/wafv2/aws-wafv2-webacl_rulegroupreferencestatement.go +++ b/cloudformation/wafv2/aws-wafv2-webacl_rulegroupreferencestatement.go @@ -26,6 +26,9 @@ type WebACL_RuleGroupReferenceStatement struct { // 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 diff --git a/cloudformation/wafv2/aws-wafv2-webacl_rules.go b/cloudformation/wafv2/aws-wafv2-webacl_rules.go index b9a35bdf39..68d9d5bdc3 100644 --- a/cloudformation/wafv2/aws-wafv2-webacl_rules.go +++ b/cloudformation/wafv2/aws-wafv2-webacl_rules.go @@ -21,6 +21,9 @@ type WebACL_Rules struct { // 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 diff --git a/cloudformation/wafv2/aws-wafv2-webacl_singleheader.go b/cloudformation/wafv2/aws-wafv2-webacl_singleheader.go index d3b7766740..0aa589d2fd 100644 --- a/cloudformation/wafv2/aws-wafv2-webacl_singleheader.go +++ b/cloudformation/wafv2/aws-wafv2-webacl_singleheader.go @@ -21,6 +21,9 @@ type WebACL_SingleHeader struct { // 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 diff --git a/cloudformation/wafv2/aws-wafv2-webacl_singlequeryargument.go b/cloudformation/wafv2/aws-wafv2-webacl_singlequeryargument.go index eadc53c92a..b9452ac5b4 100644 --- a/cloudformation/wafv2/aws-wafv2-webacl_singlequeryargument.go +++ b/cloudformation/wafv2/aws-wafv2-webacl_singlequeryargument.go @@ -21,6 +21,9 @@ type WebACL_SingleQueryArgument struct { // 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 diff --git a/cloudformation/wafv2/aws-wafv2-webacl_sizeconstraintstatement.go b/cloudformation/wafv2/aws-wafv2-webacl_sizeconstraintstatement.go index cdf20253df..71d8f2abb6 100644 --- a/cloudformation/wafv2/aws-wafv2-webacl_sizeconstraintstatement.go +++ b/cloudformation/wafv2/aws-wafv2-webacl_sizeconstraintstatement.go @@ -36,6 +36,9 @@ type WebACL_SizeConstraintStatement struct { // 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 diff --git a/cloudformation/wafv2/aws-wafv2-webacl_sqlimatchstatement.go b/cloudformation/wafv2/aws-wafv2-webacl_sqlimatchstatement.go index 9a457d9a49..3ae127b405 100644 --- a/cloudformation/wafv2/aws-wafv2-webacl_sqlimatchstatement.go +++ b/cloudformation/wafv2/aws-wafv2-webacl_sqlimatchstatement.go @@ -26,6 +26,9 @@ type WebACL_SqliMatchStatement struct { // 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 diff --git a/cloudformation/wafv2/aws-wafv2-webacl_statementone.go b/cloudformation/wafv2/aws-wafv2-webacl_statementone.go index 5c9dbc617f..a7b171337e 100644 --- a/cloudformation/wafv2/aws-wafv2-webacl_statementone.go +++ b/cloudformation/wafv2/aws-wafv2-webacl_statementone.go @@ -81,6 +81,9 @@ type WebACL_StatementOne struct { // 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 diff --git a/cloudformation/wafv2/aws-wafv2-webacl_statementthree.go b/cloudformation/wafv2/aws-wafv2-webacl_statementthree.go index dff0abc42f..07328776c3 100644 --- a/cloudformation/wafv2/aws-wafv2-webacl_statementthree.go +++ b/cloudformation/wafv2/aws-wafv2-webacl_statementthree.go @@ -61,6 +61,9 @@ type WebACL_StatementThree struct { // 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 diff --git a/cloudformation/wafv2/aws-wafv2-webacl_statementthrees.go b/cloudformation/wafv2/aws-wafv2-webacl_statementthrees.go index 8b1590b24b..bb6c48256c 100644 --- a/cloudformation/wafv2/aws-wafv2-webacl_statementthrees.go +++ b/cloudformation/wafv2/aws-wafv2-webacl_statementthrees.go @@ -21,6 +21,9 @@ type WebACL_StatementThrees struct { // 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 diff --git a/cloudformation/wafv2/aws-wafv2-webacl_statementtwo.go b/cloudformation/wafv2/aws-wafv2-webacl_statementtwo.go index 83fd2aa33d..5d1e357fa3 100644 --- a/cloudformation/wafv2/aws-wafv2-webacl_statementtwo.go +++ b/cloudformation/wafv2/aws-wafv2-webacl_statementtwo.go @@ -81,6 +81,9 @@ type WebACL_StatementTwo struct { // 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 diff --git a/cloudformation/wafv2/aws-wafv2-webacl_statementtwos.go b/cloudformation/wafv2/aws-wafv2-webacl_statementtwos.go index 570a32b004..dc3db8fe78 100644 --- a/cloudformation/wafv2/aws-wafv2-webacl_statementtwos.go +++ b/cloudformation/wafv2/aws-wafv2-webacl_statementtwos.go @@ -21,6 +21,9 @@ type WebACL_StatementTwos struct { // 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 diff --git a/cloudformation/wafv2/aws-wafv2-webacl_taglist.go b/cloudformation/wafv2/aws-wafv2-webacl_taglist.go index 4b44e55a5c..822b9cafcd 100644 --- a/cloudformation/wafv2/aws-wafv2-webacl_taglist.go +++ b/cloudformation/wafv2/aws-wafv2-webacl_taglist.go @@ -22,6 +22,9 @@ type WebACL_TagList struct { // 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 diff --git a/cloudformation/wafv2/aws-wafv2-webacl_texttransformation.go b/cloudformation/wafv2/aws-wafv2-webacl_texttransformation.go index 92bb0ceb3f..98c132f88d 100644 --- a/cloudformation/wafv2/aws-wafv2-webacl_texttransformation.go +++ b/cloudformation/wafv2/aws-wafv2-webacl_texttransformation.go @@ -26,6 +26,9 @@ type WebACL_TextTransformation struct { // 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 diff --git a/cloudformation/wafv2/aws-wafv2-webacl_texttransformations.go b/cloudformation/wafv2/aws-wafv2-webacl_texttransformations.go index 050a06a881..dcd28681c9 100644 --- a/cloudformation/wafv2/aws-wafv2-webacl_texttransformations.go +++ b/cloudformation/wafv2/aws-wafv2-webacl_texttransformations.go @@ -21,6 +21,9 @@ type WebACL_TextTransformations struct { // 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 diff --git a/cloudformation/wafv2/aws-wafv2-webacl_uripath.go b/cloudformation/wafv2/aws-wafv2-webacl_uripath.go index 98c172109b..6a4a205425 100644 --- a/cloudformation/wafv2/aws-wafv2-webacl_uripath.go +++ b/cloudformation/wafv2/aws-wafv2-webacl_uripath.go @@ -16,6 +16,9 @@ type WebACL_UriPath struct { // 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 diff --git a/cloudformation/wafv2/aws-wafv2-webacl_visibilityconfig.go b/cloudformation/wafv2/aws-wafv2-webacl_visibilityconfig.go index 1704a0d978..bd1bd74c49 100644 --- a/cloudformation/wafv2/aws-wafv2-webacl_visibilityconfig.go +++ b/cloudformation/wafv2/aws-wafv2-webacl_visibilityconfig.go @@ -31,6 +31,9 @@ type WebACL_VisibilityConfig struct { // 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 diff --git a/cloudformation/wafv2/aws-wafv2-webacl_xssmatchstatement.go b/cloudformation/wafv2/aws-wafv2-webacl_xssmatchstatement.go index c68beab345..242b10b418 100644 --- a/cloudformation/wafv2/aws-wafv2-webacl_xssmatchstatement.go +++ b/cloudformation/wafv2/aws-wafv2-webacl_xssmatchstatement.go @@ -26,6 +26,9 @@ type WebACL_XssMatchStatement struct { // 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 diff --git a/cloudformation/workspaces/aws-workspaces-workspace.go b/cloudformation/workspaces/aws-workspaces-workspace.go index e6d85156c8..2e710b3dbb 100644 --- a/cloudformation/workspaces/aws-workspaces-workspace.go +++ b/cloudformation/workspaces/aws-workspaces-workspace.go @@ -61,6 +61,9 @@ type Workspace struct { // 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 @@ -78,12 +81,14 @@ func (r Workspace) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` }{ Type: r.AWSCloudFormationType(), Properties: (Properties)(r), DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, }) } @@ -97,6 +102,7 @@ func (r *Workspace) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -120,5 +126,8 @@ func (r *Workspace) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/cloudformation/workspaces/aws-workspaces-workspace_workspaceproperties.go b/cloudformation/workspaces/aws-workspaces-workspace_workspaceproperties.go index 2af9b4bc33..e57d6c23a6 100644 --- a/cloudformation/workspaces/aws-workspaces-workspace_workspaceproperties.go +++ b/cloudformation/workspaces/aws-workspaces-workspace_workspaceproperties.go @@ -41,6 +41,9 @@ type Workspace_WorkspaceProperties struct { // 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 diff --git a/generate/resource_test.go b/generate/resource_test.go index b053e56003..a14d374860 100644 --- a/generate/resource_test.go +++ b/generate/resource_test.go @@ -2,6 +2,7 @@ package main_test import ( "encoding/json" + "github.com/awslabs/goformation/v4/cloudformation/rds" "github.com/awslabs/goformation/v4/cloudformation/ec2" "github.com/awslabs/goformation/v4/cloudformation/s3" @@ -101,6 +102,23 @@ var _ = Describe("Resource", func() { }) + Context("with a condition attribute", func() { + + resource := &rds.DBCluster{ + DatabaseName: "MyDatabase", + } + resource.AWSCloudFormationCondition = "MyCondition" + + expected := []byte(`{"Type":"AWS::RDS::DBCluster","Properties":{"DatabaseName":"MyDatabase"},"Condition":"MyCondition"}`) + + result, err := json.Marshal(resource) + It("should marshal to JSON successfully", func() { + Expect(result).To(Equal(expected)) + Expect(err).To(BeNil()) + }) + + }) + }) Context("specified as JSON", func() { @@ -139,6 +157,23 @@ var _ = Describe("Resource", func() { }) + Context("with a condition attribute", func() { + + property := []byte(`{"Type":"AWS::RDS::DBCluster","Properties":{"DatabaseName":"MyDatabase"},"Condition":"MyCondition"}`) + expected := &rds.DBCluster{ + DatabaseName: "MyDatabase", + } + expected.AWSCloudFormationCondition = "MyCondition" + + result := &rds.DBCluster{} + err := json.Unmarshal(property, result) + It("should unmarshal to a Go struct successfully", func() { + Expect(result).To(Equal(expected)) + Expect(err).To(BeNil()) + }) + + }) + }) }) diff --git a/generate/templates/resource.template b/generate/templates/resource.template index 60f35b338d..89c82e22a9 100644 --- a/generate/templates/resource.template +++ b/generate/templates/resource.template @@ -42,6 +42,9 @@ type {{.StructName}} struct { // 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 @@ -60,6 +63,7 @@ func (r {{.StructName}}) MarshalJSON() ([]byte, error) { DependsOn []string `json:"DependsOn,omitempty"` Metadata map[string]interface{} `json:"Metadata,omitempty"` DeletionPolicy policies.DeletionPolicy `json:"DeletionPolicy,omitempty"` + Condition string `json:"Condition,omitempty"` {{if .HasUpdatePolicy}}UpdatePolicy *policies.UpdatePolicy `json:"UpdatePolicy,omitempty"`{{end}} {{if .HasCreationPolicy}}CreationPolicy *policies.CreationPolicy `json:"CreationPolicy,omitempty"`{{end}} }{ @@ -68,6 +72,7 @@ func (r {{.StructName}}) MarshalJSON() ([]byte, error) { DependsOn: r.AWSCloudFormationDependsOn, Metadata: r.AWSCloudFormationMetadata, DeletionPolicy: r.AWSCloudFormationDeletionPolicy, + Condition: r.AWSCloudFormationCondition, {{if .HasUpdatePolicy}}UpdatePolicy: r.AWSCloudFormationUpdatePolicy,{{end}} {{if .HasCreationPolicy}}CreationPolicy: r.AWSCloudFormationCreationPolicy,{{end}} }) @@ -83,6 +88,7 @@ func (r *{{.StructName}}) UnmarshalJSON(b []byte) error { DependsOn []string Metadata map[string]interface{} DeletionPolicy string + Condition string }{} dec := json.NewDecoder(bytes.NewReader(b)) @@ -106,6 +112,9 @@ func (r *{{.StructName}}) UnmarshalJSON(b []byte) error { if res.DeletionPolicy != "" { r.AWSCloudFormationDeletionPolicy = policies.DeletionPolicy(res.DeletionPolicy) } + if res.Condition != "" { + r.AWSCloudFormationCondition = res.Condition + } return nil } diff --git a/goformation_test.go b/goformation_test.go index fb056885b7..80b8631c89 100644 --- a/goformation_test.go +++ b/goformation_test.go @@ -1159,4 +1159,61 @@ var _ = Describe("Goformation", func() { }) + Context("with a template that contains conditional resources", func() { + + template := &cloudformation.Template{ + Conditions: map[string]interface{}{ + "MyCondition": cloudformation.Equals(cloudformation.Ref("MyParam"), "test"), + }, + Resources: cloudformation.Resources{ + "MySNSTopic": &sns.Topic{ + TopicName: "test-sns-topic-name", + AWSCloudFormationCondition: "MyCondition", + }, + }, + } + + It("should correctly keep conditional intrinsics", func() { + data, err := template.JSON() + Expect(err).To(BeNil()) + + var result map[string]interface{} + if err := json.Unmarshal(data, &result); err != nil { + Fail(err.Error()) + } + + conditions, ok := result["Conditions"].(map[string]interface{}) + Expect(ok).To(BeTrue()) + + condition, ok := conditions["MyCondition"].(map[string]interface{}) + Expect(ok).To(BeTrue()) + + equal, ok := condition["Fn::Equals"].([]interface{}) + Expect(ok).To(BeTrue()) + Expect(equal).To(HaveLen(2)) + + refMap, ok := equal[0].(map[string]interface{}) + Expect(ok).To(BeTrue()) + + ref, ok := refMap["Ref"].(interface{}) + Expect(ok).To(BeTrue()) + Expect(ref).To(Equal("MyParam")) + + Expect(equal[1]).To(Equal("test")) + + resources, ok := result["Resources"].(map[string]interface{}) + Expect(ok).To(BeTrue()) + + topic, ok := resources["MySNSTopic"].(map[string]interface{}) + Expect(ok).To(BeTrue()) + Expect(topic).Should(HaveLen(3)) + + resCondition, ok := topic["Condition"].(interface{}) + Expect(ok).To(BeTrue()) + Expect(resCondition).To(Equal("MyCondition")) + + }) + + }) + }) diff --git a/intrinsics/intrinsics.go b/intrinsics/intrinsics.go index db9793add0..1ba1cb673a 100644 --- a/intrinsics/intrinsics.go +++ b/intrinsics/intrinsics.go @@ -45,6 +45,7 @@ type ProcessorOptions struct { ParameterOverrides map[string]interface{} NoProcess bool ProcessOnlyGlobals bool + EvaluateConditions bool } // nonResolvingHandler is a simple example of an intrinsic function handler function @@ -91,9 +92,12 @@ func ProcessJSON(input []byte, options *ProcessorOptions) ([]byte, error) { if options != nil && options.ProcessOnlyGlobals { processed = unmarshalled } else { + overrideParameters(unmarshalled, options) - evaluateConditions(unmarshalled, options) + if options != nil && options.EvaluateConditions { + evaluateConditions(unmarshalled, options) + } // Process all of the intrinsic functions processed = search(unmarshalled, unmarshalled, options) @@ -221,7 +225,7 @@ func search(input interface{}, template interface{}, options *ProcessorOptions) return h(key, search(val, template, options), template) } - if key == "Condition" { + if key == "Condition" && (options != nil && options.EvaluateConditions) { // This can lead to infinite recursion A -> B; B -> A; // pass state of the conditions that we're evaluating so we can detect cycles // in case of cycle or not found, do nothing diff --git a/intrinsics/intrinsics_test.go b/intrinsics/intrinsics_test.go index 1f0354bc56..4d9225c189 100644 --- a/intrinsics/intrinsics_test.go +++ b/intrinsics/intrinsics_test.go @@ -605,9 +605,9 @@ var _ = Describe("AWS CloudFormation intrinsic function processing", func() { } }` - Context("with no processor options", func() { + Context("with evaluate conditions processor option", func() { - processed, err := ProcessJSON([]byte(template), nil) + processed, err := ProcessJSON([]byte(template), &ProcessorOptions{EvaluateConditions: true}) It("should successfully process the template", func() { Expect(processed).ShouldNot(BeNil()) Expect(err).Should(BeNil()) diff --git a/schema/cloudformation.go b/schema/cloudformation.go index e30347b311..c320e3a817 100644 --- a/schema/cloudformation.go +++ b/schema/cloudformation.go @@ -4929,7 +4929,8 @@ var CloudformationSchema = `{ }, "required": [ "ComputeCapacity", - "InstanceType" + "InstanceType", + "Name" ], "type": "object" }, @@ -5064,7 +5065,8 @@ var CloudformationSchema = `{ } }, "required": [ - "InstanceType" + "InstanceType", + "Name" ], "type": "object" }, @@ -6913,6 +6915,9 @@ var CloudformationSchema = `{ "properties": { "InstanceType": { "type": "string" + }, + "WeightedCapacity": { + "type": "string" } }, "type": "object" @@ -9038,6 +9043,12 @@ var CloudformationSchema = `{ }, "SubnetId": { "type": "string" + }, + "Tags": { + "items": { + "$ref": "#/definitions/Tag" + }, + "type": "array" } }, "required": [ @@ -11102,6 +11113,106 @@ var CloudformationSchema = `{ ], "type": "object" }, + "AWS::CodeBuild::ReportGroup": { + "additionalProperties": false, + "properties": { + "DeletionPolicy": { + "enum": [ + "Delete", + "Retain", + "Snapshot" + ], + "type": "string" + }, + "DependsOn": { + "anyOf": [ + { + "pattern": "^[a-zA-Z0-9]+$", + "type": "string" + }, + { + "items": { + "pattern": "^[a-zA-Z0-9]+$", + "type": "string" + }, + "type": "array" + } + ] + }, + "Metadata": { + "type": "object" + }, + "Properties": { + "additionalProperties": false, + "properties": { + "ExportConfig": { + "$ref": "#/definitions/AWS::CodeBuild::ReportGroup.ReportExportConfig" + }, + "Name": { + "type": "string" + }, + "Type": { + "type": "string" + } + }, + "required": [ + "ExportConfig", + "Type" + ], + "type": "object" + }, + "Type": { + "enum": [ + "AWS::CodeBuild::ReportGroup" + ], + "type": "string" + } + }, + "required": [ + "Type", + "Properties" + ], + "type": "object" + }, + "AWS::CodeBuild::ReportGroup.ReportExportConfig": { + "additionalProperties": false, + "properties": { + "ExportConfigType": { + "type": "string" + }, + "S3Destination": { + "$ref": "#/definitions/AWS::CodeBuild::ReportGroup.S3ReportExportConfig" + } + }, + "required": [ + "ExportConfigType" + ], + "type": "object" + }, + "AWS::CodeBuild::ReportGroup.S3ReportExportConfig": { + "additionalProperties": false, + "properties": { + "Bucket": { + "type": "string" + }, + "EncryptionDisabled": { + "type": "boolean" + }, + "EncryptionKey": { + "type": "string" + }, + "Packaging": { + "type": "string" + }, + "Path": { + "type": "string" + } + }, + "required": [ + "Bucket" + ], + "type": "object" + }, "AWS::CodeBuild::SourceCredential": { "additionalProperties": false, "properties": { @@ -15048,6 +15159,39 @@ var CloudformationSchema = `{ ], "type": "object" }, + "AWS::DLM::LifecyclePolicy.CrossRegionCopyRetainRule": { + "additionalProperties": false, + "properties": { + "Interval": { + "type": "number" + }, + "IntervalUnit": { + "type": "string" + } + }, + "type": "object" + }, + "AWS::DLM::LifecyclePolicy.CrossRegionCopyRule": { + "additionalProperties": false, + "properties": { + "CmkArn": { + "type": "string" + }, + "CopyTags": { + "type": "boolean" + }, + "Encrypted": { + "type": "boolean" + }, + "RetainRule": { + "$ref": "#/definitions/AWS::DLM::LifecyclePolicy.CrossRegionCopyRetainRule" + }, + "TargetRegion": { + "type": "string" + } + }, + "type": "object" + }, "AWS::DLM::LifecyclePolicy.FastRestoreRule": { "additionalProperties": false, "properties": { @@ -15059,11 +15203,14 @@ var CloudformationSchema = `{ }, "Count": { "type": "number" + }, + "Interval": { + "type": "number" + }, + "IntervalUnit": { + "type": "string" } }, - "required": [ - "Count" - ], "type": "object" }, "AWS::DLM::LifecyclePolicy.Parameters": { @@ -15103,6 +15250,11 @@ var CloudformationSchema = `{ "type": "array" } }, + "required": [ + "ResourceTypes", + "Schedules", + "TargetTags" + ], "type": "object" }, "AWS::DLM::LifecyclePolicy.RetainRule": { @@ -15110,11 +15262,14 @@ var CloudformationSchema = `{ "properties": { "Count": { "type": "number" + }, + "Interval": { + "type": "number" + }, + "IntervalUnit": { + "type": "string" } }, - "required": [ - "Count" - ], "type": "object" }, "AWS::DLM::LifecyclePolicy.Schedule": { @@ -15126,6 +15281,12 @@ var CloudformationSchema = `{ "CreateRule": { "$ref": "#/definitions/AWS::DLM::LifecyclePolicy.CreateRule" }, + "CrossRegionCopyRules": { + "items": { + "$ref": "#/definitions/AWS::DLM::LifecyclePolicy.CrossRegionCopyRule" + }, + "type": "array" + }, "FastRestoreRule": { "$ref": "#/definitions/AWS::DLM::LifecyclePolicy.FastRestoreRule" }, @@ -17826,6 +17987,64 @@ var CloudformationSchema = `{ ], "type": "object" }, + "AWS::EC2::GatewayRouteTableAssociation": { + "additionalProperties": false, + "properties": { + "DeletionPolicy": { + "enum": [ + "Delete", + "Retain", + "Snapshot" + ], + "type": "string" + }, + "DependsOn": { + "anyOf": [ + { + "pattern": "^[a-zA-Z0-9]+$", + "type": "string" + }, + { + "items": { + "pattern": "^[a-zA-Z0-9]+$", + "type": "string" + }, + "type": "array" + } + ] + }, + "Metadata": { + "type": "object" + }, + "Properties": { + "additionalProperties": false, + "properties": { + "GatewayId": { + "type": "string" + }, + "RouteTableId": { + "type": "string" + } + }, + "required": [ + "GatewayId", + "RouteTableId" + ], + "type": "object" + }, + "Type": { + "enum": [ + "AWS::EC2::GatewayRouteTableAssociation" + ], + "type": "string" + } + }, + "required": [ + "Type", + "Properties" + ], + "type": "object" + }, "AWS::EC2::Host": { "additionalProperties": false, "properties": { @@ -17964,9 +18183,15 @@ var CloudformationSchema = `{ }, "type": "array" }, + "HibernationOptions": { + "$ref": "#/definitions/AWS::EC2::Instance.HibernationOptions" + }, "HostId": { "type": "string" }, + "HostResourceGroupArn": { + "type": "string" + }, "IamInstanceProfile": { "type": "string" }, @@ -18193,6 +18418,15 @@ var CloudformationSchema = `{ ], "type": "object" }, + "AWS::EC2::Instance.HibernationOptions": { + "additionalProperties": false, + "properties": { + "Configured": { + "type": "boolean" + } + }, + "type": "object" + }, "AWS::EC2::Instance.InstanceIpv6Address": { "additionalProperties": false, "properties": { @@ -36257,6 +36491,9 @@ var CloudformationSchema = `{ "DetectorModelName": { "type": "string" }, + "EvaluationMethod": { + "type": "string" + }, "Key": { "type": "string" }, @@ -40464,6 +40701,9 @@ var CloudformationSchema = `{ "NumberOfBrokerNodes": { "type": "number" }, + "OpenMonitoring": { + "$ref": "#/definitions/AWS::MSK::Cluster.OpenMonitoring" + }, "Tags": { "type": "object" } @@ -40590,6 +40830,54 @@ var CloudformationSchema = `{ }, "type": "object" }, + "AWS::MSK::Cluster.JmxExporter": { + "additionalProperties": false, + "properties": { + "EnabledInBroker": { + "type": "boolean" + } + }, + "required": [ + "EnabledInBroker" + ], + "type": "object" + }, + "AWS::MSK::Cluster.NodeExporter": { + "additionalProperties": false, + "properties": { + "EnabledInBroker": { + "type": "boolean" + } + }, + "required": [ + "EnabledInBroker" + ], + "type": "object" + }, + "AWS::MSK::Cluster.OpenMonitoring": { + "additionalProperties": false, + "properties": { + "Prometheus": { + "$ref": "#/definitions/AWS::MSK::Cluster.Prometheus" + } + }, + "required": [ + "Prometheus" + ], + "type": "object" + }, + "AWS::MSK::Cluster.Prometheus": { + "additionalProperties": false, + "properties": { + "JmxExporter": { + "$ref": "#/definitions/AWS::MSK::Cluster.JmxExporter" + }, + "NodeExporter": { + "$ref": "#/definitions/AWS::MSK::Cluster.NodeExporter" + } + }, + "type": "object" + }, "AWS::MSK::Cluster.StorageInfo": { "additionalProperties": false, "properties": { @@ -44517,6 +44805,9 @@ var CloudformationSchema = `{ "Properties": { "additionalProperties": false, "properties": { + "DefaultSubstitutions": { + "type": "string" + }, "HtmlPart": { "type": "string" }, @@ -44526,6 +44817,9 @@ var CloudformationSchema = `{ "Tags": { "type": "object" }, + "TemplateDescription": { + "type": "string" + }, "TemplateName": { "type": "string" }, @@ -44719,12 +45013,18 @@ var CloudformationSchema = `{ "Default": { "$ref": "#/definitions/AWS::Pinpoint::PushTemplate.DefaultPushNotificationTemplate" }, + "DefaultSubstitutions": { + "type": "string" + }, "GCM": { "$ref": "#/definitions/AWS::Pinpoint::PushTemplate.AndroidPushNotificationTemplate" }, "Tags": { "type": "object" }, + "TemplateDescription": { + "type": "string" + }, "TemplateName": { "type": "string" } @@ -45188,9 +45488,15 @@ var CloudformationSchema = `{ "Body": { "type": "string" }, + "DefaultSubstitutions": { + "type": "string" + }, "Tags": { "type": "object" }, + "TemplateDescription": { + "type": "string" + }, "TemplateName": { "type": "string" } @@ -46166,6 +46472,9 @@ var CloudformationSchema = `{ "BackupRetentionPeriod": { "type": "number" }, + "CACertificateIdentifier": { + "type": "string" + }, "CharacterSetName": { "type": "string" }, @@ -46244,6 +46553,9 @@ var CloudformationSchema = `{ "MasterUsername": { "type": "string" }, + "MaxAllocatedStorage": { + "type": "number" + }, "MonitoringInterval": { "type": "number" }, @@ -50860,6 +51172,9 @@ var CloudformationSchema = `{ "DocumentType": { "type": "string" }, + "Name": { + "type": "string" + }, "Tags": { "items": { "$ref": "#/definitions/Tag" @@ -51612,17 +51927,23 @@ var CloudformationSchema = `{ "KMSKeyArn": { "type": "string" }, + "S3Destination": { + "$ref": "#/definitions/AWS::SSM::ResourceDataSync.S3Destination" + }, "SyncFormat": { "type": "string" }, "SyncName": { "type": "string" + }, + "SyncSource": { + "$ref": "#/definitions/AWS::SSM::ResourceDataSync.SyncSource" + }, + "SyncType": { + "type": "string" } }, "required": [ - "BucketName", - "BucketRegion", - "SyncFormat", "SyncName" ], "type": "object" @@ -51640,6 +51961,75 @@ var CloudformationSchema = `{ ], "type": "object" }, + "AWS::SSM::ResourceDataSync.AwsOrganizationsSource": { + "additionalProperties": false, + "properties": { + "OrganizationSourceType": { + "type": "string" + }, + "OrganizationalUnits": { + "items": { + "type": "string" + }, + "type": "array" + } + }, + "required": [ + "OrganizationSourceType" + ], + "type": "object" + }, + "AWS::SSM::ResourceDataSync.S3Destination": { + "additionalProperties": false, + "properties": { + "BucketName": { + "type": "string" + }, + "BucketPrefix": { + "type": "string" + }, + "BucketRegion": { + "type": "string" + }, + "KMSKeyArn": { + "type": "string" + }, + "SyncFormat": { + "type": "string" + } + }, + "required": [ + "BucketName", + "BucketRegion", + "SyncFormat" + ], + "type": "object" + }, + "AWS::SSM::ResourceDataSync.SyncSource": { + "additionalProperties": false, + "properties": { + "AwsOrganizationsSource": { + "$ref": "#/definitions/AWS::SSM::ResourceDataSync.AwsOrganizationsSource" + }, + "IncludeFutureRegions": { + "type": "boolean" + }, + "SourceRegions": { + "items": { + "type": "string" + }, + "type": "array" + }, + "SourceType": { + "type": "string" + } + }, + "required": [ + "SourceRegions", + "SourceType" + ], + "type": "object" + }, "AWS::SageMaker::CodeRepository": { "additionalProperties": false, "properties": { @@ -51983,6 +52373,9 @@ var CloudformationSchema = `{ "Image": { "type": "string" }, + "Mode": { + "type": "string" + }, "ModelDataUrl": { "type": "string" } @@ -54392,6 +54785,15 @@ var CloudformationSchema = `{ "HomeDirectory": { "type": "string" }, + "HomeDirectoryMappings": { + "items": { + "$ref": "#/definitions/AWS::Transfer::User.HomeDirectoryMapEntry" + }, + "type": "array" + }, + "HomeDirectoryType": { + "type": "string" + }, "Policy": { "type": "string" }, @@ -54437,6 +54839,22 @@ var CloudformationSchema = `{ ], "type": "object" }, + "AWS::Transfer::User.HomeDirectoryMapEntry": { + "additionalProperties": false, + "properties": { + "Entry": { + "type": "string" + }, + "Target": { + "type": "string" + } + }, + "required": [ + "Entry", + "Target" + ], + "type": "object" + }, "AWS::Transfer::User.SshPublicKey": { "additionalProperties": false, "properties": {}, @@ -56066,7 +56484,8 @@ var CloudformationSchema = `{ } }, "required": [ - "Name", + "Addresses", + "IPAddressVersion", "Scope" ], "type": "object" @@ -56157,7 +56576,7 @@ var CloudformationSchema = `{ } }, "required": [ - "Name", + "RegularExpressionList", "Scope" ], "type": "object" @@ -56263,8 +56682,9 @@ var CloudformationSchema = `{ } }, "required": [ - "Name", - "Scope" + "Capacity", + "Scope", + "VisibilityConfig" ], "type": "object" }, @@ -56841,8 +57261,9 @@ var CloudformationSchema = `{ } }, "required": [ - "Name", - "Scope" + "DefaultAction", + "Scope", + "VisibilityConfig" ], "type": "object" }, @@ -58112,6 +58533,9 @@ var CloudformationSchema = `{ { "$ref": "#/definitions/AWS::CodeBuild::Project" }, + { + "$ref": "#/definitions/AWS::CodeBuild::ReportGroup" + }, { "$ref": "#/definitions/AWS::CodeBuild::SourceCredential" }, @@ -58289,6 +58713,9 @@ var CloudformationSchema = `{ { "$ref": "#/definitions/AWS::EC2::FlowLog" }, + { + "$ref": "#/definitions/AWS::EC2::GatewayRouteTableAssociation" + }, { "$ref": "#/definitions/AWS::EC2::Host" }, diff --git a/schema/cloudformation.schema.json b/schema/cloudformation.schema.json index 3da0911fac..5f9d9e8a55 100644 --- a/schema/cloudformation.schema.json +++ b/schema/cloudformation.schema.json @@ -4926,7 +4926,8 @@ }, "required": [ "ComputeCapacity", - "InstanceType" + "InstanceType", + "Name" ], "type": "object" }, @@ -5061,7 +5062,8 @@ } }, "required": [ - "InstanceType" + "InstanceType", + "Name" ], "type": "object" }, @@ -6910,6 +6912,9 @@ "properties": { "InstanceType": { "type": "string" + }, + "WeightedCapacity": { + "type": "string" } }, "type": "object" @@ -9035,6 +9040,12 @@ }, "SubnetId": { "type": "string" + }, + "Tags": { + "items": { + "$ref": "#/definitions/Tag" + }, + "type": "array" } }, "required": [ @@ -11099,6 +11110,106 @@ ], "type": "object" }, + "AWS::CodeBuild::ReportGroup": { + "additionalProperties": false, + "properties": { + "DeletionPolicy": { + "enum": [ + "Delete", + "Retain", + "Snapshot" + ], + "type": "string" + }, + "DependsOn": { + "anyOf": [ + { + "pattern": "^[a-zA-Z0-9]+$", + "type": "string" + }, + { + "items": { + "pattern": "^[a-zA-Z0-9]+$", + "type": "string" + }, + "type": "array" + } + ] + }, + "Metadata": { + "type": "object" + }, + "Properties": { + "additionalProperties": false, + "properties": { + "ExportConfig": { + "$ref": "#/definitions/AWS::CodeBuild::ReportGroup.ReportExportConfig" + }, + "Name": { + "type": "string" + }, + "Type": { + "type": "string" + } + }, + "required": [ + "ExportConfig", + "Type" + ], + "type": "object" + }, + "Type": { + "enum": [ + "AWS::CodeBuild::ReportGroup" + ], + "type": "string" + } + }, + "required": [ + "Type", + "Properties" + ], + "type": "object" + }, + "AWS::CodeBuild::ReportGroup.ReportExportConfig": { + "additionalProperties": false, + "properties": { + "ExportConfigType": { + "type": "string" + }, + "S3Destination": { + "$ref": "#/definitions/AWS::CodeBuild::ReportGroup.S3ReportExportConfig" + } + }, + "required": [ + "ExportConfigType" + ], + "type": "object" + }, + "AWS::CodeBuild::ReportGroup.S3ReportExportConfig": { + "additionalProperties": false, + "properties": { + "Bucket": { + "type": "string" + }, + "EncryptionDisabled": { + "type": "boolean" + }, + "EncryptionKey": { + "type": "string" + }, + "Packaging": { + "type": "string" + }, + "Path": { + "type": "string" + } + }, + "required": [ + "Bucket" + ], + "type": "object" + }, "AWS::CodeBuild::SourceCredential": { "additionalProperties": false, "properties": { @@ -15045,6 +15156,39 @@ ], "type": "object" }, + "AWS::DLM::LifecyclePolicy.CrossRegionCopyRetainRule": { + "additionalProperties": false, + "properties": { + "Interval": { + "type": "number" + }, + "IntervalUnit": { + "type": "string" + } + }, + "type": "object" + }, + "AWS::DLM::LifecyclePolicy.CrossRegionCopyRule": { + "additionalProperties": false, + "properties": { + "CmkArn": { + "type": "string" + }, + "CopyTags": { + "type": "boolean" + }, + "Encrypted": { + "type": "boolean" + }, + "RetainRule": { + "$ref": "#/definitions/AWS::DLM::LifecyclePolicy.CrossRegionCopyRetainRule" + }, + "TargetRegion": { + "type": "string" + } + }, + "type": "object" + }, "AWS::DLM::LifecyclePolicy.FastRestoreRule": { "additionalProperties": false, "properties": { @@ -15056,11 +15200,14 @@ }, "Count": { "type": "number" + }, + "Interval": { + "type": "number" + }, + "IntervalUnit": { + "type": "string" } }, - "required": [ - "Count" - ], "type": "object" }, "AWS::DLM::LifecyclePolicy.Parameters": { @@ -15100,6 +15247,11 @@ "type": "array" } }, + "required": [ + "ResourceTypes", + "Schedules", + "TargetTags" + ], "type": "object" }, "AWS::DLM::LifecyclePolicy.RetainRule": { @@ -15107,11 +15259,14 @@ "properties": { "Count": { "type": "number" + }, + "Interval": { + "type": "number" + }, + "IntervalUnit": { + "type": "string" } }, - "required": [ - "Count" - ], "type": "object" }, "AWS::DLM::LifecyclePolicy.Schedule": { @@ -15123,6 +15278,12 @@ "CreateRule": { "$ref": "#/definitions/AWS::DLM::LifecyclePolicy.CreateRule" }, + "CrossRegionCopyRules": { + "items": { + "$ref": "#/definitions/AWS::DLM::LifecyclePolicy.CrossRegionCopyRule" + }, + "type": "array" + }, "FastRestoreRule": { "$ref": "#/definitions/AWS::DLM::LifecyclePolicy.FastRestoreRule" }, @@ -17823,6 +17984,64 @@ ], "type": "object" }, + "AWS::EC2::GatewayRouteTableAssociation": { + "additionalProperties": false, + "properties": { + "DeletionPolicy": { + "enum": [ + "Delete", + "Retain", + "Snapshot" + ], + "type": "string" + }, + "DependsOn": { + "anyOf": [ + { + "pattern": "^[a-zA-Z0-9]+$", + "type": "string" + }, + { + "items": { + "pattern": "^[a-zA-Z0-9]+$", + "type": "string" + }, + "type": "array" + } + ] + }, + "Metadata": { + "type": "object" + }, + "Properties": { + "additionalProperties": false, + "properties": { + "GatewayId": { + "type": "string" + }, + "RouteTableId": { + "type": "string" + } + }, + "required": [ + "GatewayId", + "RouteTableId" + ], + "type": "object" + }, + "Type": { + "enum": [ + "AWS::EC2::GatewayRouteTableAssociation" + ], + "type": "string" + } + }, + "required": [ + "Type", + "Properties" + ], + "type": "object" + }, "AWS::EC2::Host": { "additionalProperties": false, "properties": { @@ -17961,9 +18180,15 @@ }, "type": "array" }, + "HibernationOptions": { + "$ref": "#/definitions/AWS::EC2::Instance.HibernationOptions" + }, "HostId": { "type": "string" }, + "HostResourceGroupArn": { + "type": "string" + }, "IamInstanceProfile": { "type": "string" }, @@ -18190,6 +18415,15 @@ ], "type": "object" }, + "AWS::EC2::Instance.HibernationOptions": { + "additionalProperties": false, + "properties": { + "Configured": { + "type": "boolean" + } + }, + "type": "object" + }, "AWS::EC2::Instance.InstanceIpv6Address": { "additionalProperties": false, "properties": { @@ -36254,6 +36488,9 @@ "DetectorModelName": { "type": "string" }, + "EvaluationMethod": { + "type": "string" + }, "Key": { "type": "string" }, @@ -40461,6 +40698,9 @@ "NumberOfBrokerNodes": { "type": "number" }, + "OpenMonitoring": { + "$ref": "#/definitions/AWS::MSK::Cluster.OpenMonitoring" + }, "Tags": { "type": "object" } @@ -40587,6 +40827,54 @@ }, "type": "object" }, + "AWS::MSK::Cluster.JmxExporter": { + "additionalProperties": false, + "properties": { + "EnabledInBroker": { + "type": "boolean" + } + }, + "required": [ + "EnabledInBroker" + ], + "type": "object" + }, + "AWS::MSK::Cluster.NodeExporter": { + "additionalProperties": false, + "properties": { + "EnabledInBroker": { + "type": "boolean" + } + }, + "required": [ + "EnabledInBroker" + ], + "type": "object" + }, + "AWS::MSK::Cluster.OpenMonitoring": { + "additionalProperties": false, + "properties": { + "Prometheus": { + "$ref": "#/definitions/AWS::MSK::Cluster.Prometheus" + } + }, + "required": [ + "Prometheus" + ], + "type": "object" + }, + "AWS::MSK::Cluster.Prometheus": { + "additionalProperties": false, + "properties": { + "JmxExporter": { + "$ref": "#/definitions/AWS::MSK::Cluster.JmxExporter" + }, + "NodeExporter": { + "$ref": "#/definitions/AWS::MSK::Cluster.NodeExporter" + } + }, + "type": "object" + }, "AWS::MSK::Cluster.StorageInfo": { "additionalProperties": false, "properties": { @@ -44514,6 +44802,9 @@ "Properties": { "additionalProperties": false, "properties": { + "DefaultSubstitutions": { + "type": "string" + }, "HtmlPart": { "type": "string" }, @@ -44523,6 +44814,9 @@ "Tags": { "type": "object" }, + "TemplateDescription": { + "type": "string" + }, "TemplateName": { "type": "string" }, @@ -44716,12 +45010,18 @@ "Default": { "$ref": "#/definitions/AWS::Pinpoint::PushTemplate.DefaultPushNotificationTemplate" }, + "DefaultSubstitutions": { + "type": "string" + }, "GCM": { "$ref": "#/definitions/AWS::Pinpoint::PushTemplate.AndroidPushNotificationTemplate" }, "Tags": { "type": "object" }, + "TemplateDescription": { + "type": "string" + }, "TemplateName": { "type": "string" } @@ -45185,9 +45485,15 @@ "Body": { "type": "string" }, + "DefaultSubstitutions": { + "type": "string" + }, "Tags": { "type": "object" }, + "TemplateDescription": { + "type": "string" + }, "TemplateName": { "type": "string" } @@ -46163,6 +46469,9 @@ "BackupRetentionPeriod": { "type": "number" }, + "CACertificateIdentifier": { + "type": "string" + }, "CharacterSetName": { "type": "string" }, @@ -46241,6 +46550,9 @@ "MasterUsername": { "type": "string" }, + "MaxAllocatedStorage": { + "type": "number" + }, "MonitoringInterval": { "type": "number" }, @@ -50857,6 +51169,9 @@ "DocumentType": { "type": "string" }, + "Name": { + "type": "string" + }, "Tags": { "items": { "$ref": "#/definitions/Tag" @@ -51609,17 +51924,23 @@ "KMSKeyArn": { "type": "string" }, + "S3Destination": { + "$ref": "#/definitions/AWS::SSM::ResourceDataSync.S3Destination" + }, "SyncFormat": { "type": "string" }, "SyncName": { "type": "string" + }, + "SyncSource": { + "$ref": "#/definitions/AWS::SSM::ResourceDataSync.SyncSource" + }, + "SyncType": { + "type": "string" } }, "required": [ - "BucketName", - "BucketRegion", - "SyncFormat", "SyncName" ], "type": "object" @@ -51637,6 +51958,75 @@ ], "type": "object" }, + "AWS::SSM::ResourceDataSync.AwsOrganizationsSource": { + "additionalProperties": false, + "properties": { + "OrganizationSourceType": { + "type": "string" + }, + "OrganizationalUnits": { + "items": { + "type": "string" + }, + "type": "array" + } + }, + "required": [ + "OrganizationSourceType" + ], + "type": "object" + }, + "AWS::SSM::ResourceDataSync.S3Destination": { + "additionalProperties": false, + "properties": { + "BucketName": { + "type": "string" + }, + "BucketPrefix": { + "type": "string" + }, + "BucketRegion": { + "type": "string" + }, + "KMSKeyArn": { + "type": "string" + }, + "SyncFormat": { + "type": "string" + } + }, + "required": [ + "BucketName", + "BucketRegion", + "SyncFormat" + ], + "type": "object" + }, + "AWS::SSM::ResourceDataSync.SyncSource": { + "additionalProperties": false, + "properties": { + "AwsOrganizationsSource": { + "$ref": "#/definitions/AWS::SSM::ResourceDataSync.AwsOrganizationsSource" + }, + "IncludeFutureRegions": { + "type": "boolean" + }, + "SourceRegions": { + "items": { + "type": "string" + }, + "type": "array" + }, + "SourceType": { + "type": "string" + } + }, + "required": [ + "SourceRegions", + "SourceType" + ], + "type": "object" + }, "AWS::SageMaker::CodeRepository": { "additionalProperties": false, "properties": { @@ -51980,6 +52370,9 @@ "Image": { "type": "string" }, + "Mode": { + "type": "string" + }, "ModelDataUrl": { "type": "string" } @@ -54389,6 +54782,15 @@ "HomeDirectory": { "type": "string" }, + "HomeDirectoryMappings": { + "items": { + "$ref": "#/definitions/AWS::Transfer::User.HomeDirectoryMapEntry" + }, + "type": "array" + }, + "HomeDirectoryType": { + "type": "string" + }, "Policy": { "type": "string" }, @@ -54434,6 +54836,22 @@ ], "type": "object" }, + "AWS::Transfer::User.HomeDirectoryMapEntry": { + "additionalProperties": false, + "properties": { + "Entry": { + "type": "string" + }, + "Target": { + "type": "string" + } + }, + "required": [ + "Entry", + "Target" + ], + "type": "object" + }, "AWS::Transfer::User.SshPublicKey": { "additionalProperties": false, "properties": {}, @@ -56063,7 +56481,8 @@ } }, "required": [ - "Name", + "Addresses", + "IPAddressVersion", "Scope" ], "type": "object" @@ -56154,7 +56573,7 @@ } }, "required": [ - "Name", + "RegularExpressionList", "Scope" ], "type": "object" @@ -56260,8 +56679,9 @@ } }, "required": [ - "Name", - "Scope" + "Capacity", + "Scope", + "VisibilityConfig" ], "type": "object" }, @@ -56838,8 +57258,9 @@ } }, "required": [ - "Name", - "Scope" + "DefaultAction", + "Scope", + "VisibilityConfig" ], "type": "object" }, @@ -58109,6 +58530,9 @@ { "$ref": "#/definitions/AWS::CodeBuild::Project" }, + { + "$ref": "#/definitions/AWS::CodeBuild::ReportGroup" + }, { "$ref": "#/definitions/AWS::CodeBuild::SourceCredential" }, @@ -58286,6 +58710,9 @@ { "$ref": "#/definitions/AWS::EC2::FlowLog" }, + { + "$ref": "#/definitions/AWS::EC2::GatewayRouteTableAssociation" + }, { "$ref": "#/definitions/AWS::EC2::Host" }, diff --git a/schema/sam.go b/schema/sam.go index afed5f793f..c909cfd918 100644 --- a/schema/sam.go +++ b/schema/sam.go @@ -4929,7 +4929,8 @@ var SamSchema = `{ }, "required": [ "ComputeCapacity", - "InstanceType" + "InstanceType", + "Name" ], "type": "object" }, @@ -5064,7 +5065,8 @@ var SamSchema = `{ } }, "required": [ - "InstanceType" + "InstanceType", + "Name" ], "type": "object" }, @@ -6913,6 +6915,9 @@ var SamSchema = `{ "properties": { "InstanceType": { "type": "string" + }, + "WeightedCapacity": { + "type": "string" } }, "type": "object" @@ -9038,6 +9043,12 @@ var SamSchema = `{ }, "SubnetId": { "type": "string" + }, + "Tags": { + "items": { + "$ref": "#/definitions/Tag" + }, + "type": "array" } }, "required": [ @@ -11102,6 +11113,106 @@ var SamSchema = `{ ], "type": "object" }, + "AWS::CodeBuild::ReportGroup": { + "additionalProperties": false, + "properties": { + "DeletionPolicy": { + "enum": [ + "Delete", + "Retain", + "Snapshot" + ], + "type": "string" + }, + "DependsOn": { + "anyOf": [ + { + "pattern": "^[a-zA-Z0-9]+$", + "type": "string" + }, + { + "items": { + "pattern": "^[a-zA-Z0-9]+$", + "type": "string" + }, + "type": "array" + } + ] + }, + "Metadata": { + "type": "object" + }, + "Properties": { + "additionalProperties": false, + "properties": { + "ExportConfig": { + "$ref": "#/definitions/AWS::CodeBuild::ReportGroup.ReportExportConfig" + }, + "Name": { + "type": "string" + }, + "Type": { + "type": "string" + } + }, + "required": [ + "ExportConfig", + "Type" + ], + "type": "object" + }, + "Type": { + "enum": [ + "AWS::CodeBuild::ReportGroup" + ], + "type": "string" + } + }, + "required": [ + "Type", + "Properties" + ], + "type": "object" + }, + "AWS::CodeBuild::ReportGroup.ReportExportConfig": { + "additionalProperties": false, + "properties": { + "ExportConfigType": { + "type": "string" + }, + "S3Destination": { + "$ref": "#/definitions/AWS::CodeBuild::ReportGroup.S3ReportExportConfig" + } + }, + "required": [ + "ExportConfigType" + ], + "type": "object" + }, + "AWS::CodeBuild::ReportGroup.S3ReportExportConfig": { + "additionalProperties": false, + "properties": { + "Bucket": { + "type": "string" + }, + "EncryptionDisabled": { + "type": "boolean" + }, + "EncryptionKey": { + "type": "string" + }, + "Packaging": { + "type": "string" + }, + "Path": { + "type": "string" + } + }, + "required": [ + "Bucket" + ], + "type": "object" + }, "AWS::CodeBuild::SourceCredential": { "additionalProperties": false, "properties": { @@ -15048,6 +15159,39 @@ var SamSchema = `{ ], "type": "object" }, + "AWS::DLM::LifecyclePolicy.CrossRegionCopyRetainRule": { + "additionalProperties": false, + "properties": { + "Interval": { + "type": "number" + }, + "IntervalUnit": { + "type": "string" + } + }, + "type": "object" + }, + "AWS::DLM::LifecyclePolicy.CrossRegionCopyRule": { + "additionalProperties": false, + "properties": { + "CmkArn": { + "type": "string" + }, + "CopyTags": { + "type": "boolean" + }, + "Encrypted": { + "type": "boolean" + }, + "RetainRule": { + "$ref": "#/definitions/AWS::DLM::LifecyclePolicy.CrossRegionCopyRetainRule" + }, + "TargetRegion": { + "type": "string" + } + }, + "type": "object" + }, "AWS::DLM::LifecyclePolicy.FastRestoreRule": { "additionalProperties": false, "properties": { @@ -15059,11 +15203,14 @@ var SamSchema = `{ }, "Count": { "type": "number" + }, + "Interval": { + "type": "number" + }, + "IntervalUnit": { + "type": "string" } }, - "required": [ - "Count" - ], "type": "object" }, "AWS::DLM::LifecyclePolicy.Parameters": { @@ -15103,6 +15250,11 @@ var SamSchema = `{ "type": "array" } }, + "required": [ + "ResourceTypes", + "Schedules", + "TargetTags" + ], "type": "object" }, "AWS::DLM::LifecyclePolicy.RetainRule": { @@ -15110,11 +15262,14 @@ var SamSchema = `{ "properties": { "Count": { "type": "number" + }, + "Interval": { + "type": "number" + }, + "IntervalUnit": { + "type": "string" } }, - "required": [ - "Count" - ], "type": "object" }, "AWS::DLM::LifecyclePolicy.Schedule": { @@ -15126,6 +15281,12 @@ var SamSchema = `{ "CreateRule": { "$ref": "#/definitions/AWS::DLM::LifecyclePolicy.CreateRule" }, + "CrossRegionCopyRules": { + "items": { + "$ref": "#/definitions/AWS::DLM::LifecyclePolicy.CrossRegionCopyRule" + }, + "type": "array" + }, "FastRestoreRule": { "$ref": "#/definitions/AWS::DLM::LifecyclePolicy.FastRestoreRule" }, @@ -17826,6 +17987,64 @@ var SamSchema = `{ ], "type": "object" }, + "AWS::EC2::GatewayRouteTableAssociation": { + "additionalProperties": false, + "properties": { + "DeletionPolicy": { + "enum": [ + "Delete", + "Retain", + "Snapshot" + ], + "type": "string" + }, + "DependsOn": { + "anyOf": [ + { + "pattern": "^[a-zA-Z0-9]+$", + "type": "string" + }, + { + "items": { + "pattern": "^[a-zA-Z0-9]+$", + "type": "string" + }, + "type": "array" + } + ] + }, + "Metadata": { + "type": "object" + }, + "Properties": { + "additionalProperties": false, + "properties": { + "GatewayId": { + "type": "string" + }, + "RouteTableId": { + "type": "string" + } + }, + "required": [ + "GatewayId", + "RouteTableId" + ], + "type": "object" + }, + "Type": { + "enum": [ + "AWS::EC2::GatewayRouteTableAssociation" + ], + "type": "string" + } + }, + "required": [ + "Type", + "Properties" + ], + "type": "object" + }, "AWS::EC2::Host": { "additionalProperties": false, "properties": { @@ -17964,9 +18183,15 @@ var SamSchema = `{ }, "type": "array" }, + "HibernationOptions": { + "$ref": "#/definitions/AWS::EC2::Instance.HibernationOptions" + }, "HostId": { "type": "string" }, + "HostResourceGroupArn": { + "type": "string" + }, "IamInstanceProfile": { "type": "string" }, @@ -18193,6 +18418,15 @@ var SamSchema = `{ ], "type": "object" }, + "AWS::EC2::Instance.HibernationOptions": { + "additionalProperties": false, + "properties": { + "Configured": { + "type": "boolean" + } + }, + "type": "object" + }, "AWS::EC2::Instance.InstanceIpv6Address": { "additionalProperties": false, "properties": { @@ -36257,6 +36491,9 @@ var SamSchema = `{ "DetectorModelName": { "type": "string" }, + "EvaluationMethod": { + "type": "string" + }, "Key": { "type": "string" }, @@ -40464,6 +40701,9 @@ var SamSchema = `{ "NumberOfBrokerNodes": { "type": "number" }, + "OpenMonitoring": { + "$ref": "#/definitions/AWS::MSK::Cluster.OpenMonitoring" + }, "Tags": { "type": "object" } @@ -40590,6 +40830,54 @@ var SamSchema = `{ }, "type": "object" }, + "AWS::MSK::Cluster.JmxExporter": { + "additionalProperties": false, + "properties": { + "EnabledInBroker": { + "type": "boolean" + } + }, + "required": [ + "EnabledInBroker" + ], + "type": "object" + }, + "AWS::MSK::Cluster.NodeExporter": { + "additionalProperties": false, + "properties": { + "EnabledInBroker": { + "type": "boolean" + } + }, + "required": [ + "EnabledInBroker" + ], + "type": "object" + }, + "AWS::MSK::Cluster.OpenMonitoring": { + "additionalProperties": false, + "properties": { + "Prometheus": { + "$ref": "#/definitions/AWS::MSK::Cluster.Prometheus" + } + }, + "required": [ + "Prometheus" + ], + "type": "object" + }, + "AWS::MSK::Cluster.Prometheus": { + "additionalProperties": false, + "properties": { + "JmxExporter": { + "$ref": "#/definitions/AWS::MSK::Cluster.JmxExporter" + }, + "NodeExporter": { + "$ref": "#/definitions/AWS::MSK::Cluster.NodeExporter" + } + }, + "type": "object" + }, "AWS::MSK::Cluster.StorageInfo": { "additionalProperties": false, "properties": { @@ -44517,6 +44805,9 @@ var SamSchema = `{ "Properties": { "additionalProperties": false, "properties": { + "DefaultSubstitutions": { + "type": "string" + }, "HtmlPart": { "type": "string" }, @@ -44526,6 +44817,9 @@ var SamSchema = `{ "Tags": { "type": "object" }, + "TemplateDescription": { + "type": "string" + }, "TemplateName": { "type": "string" }, @@ -44719,12 +45013,18 @@ var SamSchema = `{ "Default": { "$ref": "#/definitions/AWS::Pinpoint::PushTemplate.DefaultPushNotificationTemplate" }, + "DefaultSubstitutions": { + "type": "string" + }, "GCM": { "$ref": "#/definitions/AWS::Pinpoint::PushTemplate.AndroidPushNotificationTemplate" }, "Tags": { "type": "object" }, + "TemplateDescription": { + "type": "string" + }, "TemplateName": { "type": "string" } @@ -45188,9 +45488,15 @@ var SamSchema = `{ "Body": { "type": "string" }, + "DefaultSubstitutions": { + "type": "string" + }, "Tags": { "type": "object" }, + "TemplateDescription": { + "type": "string" + }, "TemplateName": { "type": "string" } @@ -46166,6 +46472,9 @@ var SamSchema = `{ "BackupRetentionPeriod": { "type": "number" }, + "CACertificateIdentifier": { + "type": "string" + }, "CharacterSetName": { "type": "string" }, @@ -46244,6 +46553,9 @@ var SamSchema = `{ "MasterUsername": { "type": "string" }, + "MaxAllocatedStorage": { + "type": "number" + }, "MonitoringInterval": { "type": "number" }, @@ -50860,6 +51172,9 @@ var SamSchema = `{ "DocumentType": { "type": "string" }, + "Name": { + "type": "string" + }, "Tags": { "items": { "$ref": "#/definitions/Tag" @@ -51612,17 +51927,23 @@ var SamSchema = `{ "KMSKeyArn": { "type": "string" }, + "S3Destination": { + "$ref": "#/definitions/AWS::SSM::ResourceDataSync.S3Destination" + }, "SyncFormat": { "type": "string" }, "SyncName": { "type": "string" + }, + "SyncSource": { + "$ref": "#/definitions/AWS::SSM::ResourceDataSync.SyncSource" + }, + "SyncType": { + "type": "string" } }, "required": [ - "BucketName", - "BucketRegion", - "SyncFormat", "SyncName" ], "type": "object" @@ -51640,6 +51961,75 @@ var SamSchema = `{ ], "type": "object" }, + "AWS::SSM::ResourceDataSync.AwsOrganizationsSource": { + "additionalProperties": false, + "properties": { + "OrganizationSourceType": { + "type": "string" + }, + "OrganizationalUnits": { + "items": { + "type": "string" + }, + "type": "array" + } + }, + "required": [ + "OrganizationSourceType" + ], + "type": "object" + }, + "AWS::SSM::ResourceDataSync.S3Destination": { + "additionalProperties": false, + "properties": { + "BucketName": { + "type": "string" + }, + "BucketPrefix": { + "type": "string" + }, + "BucketRegion": { + "type": "string" + }, + "KMSKeyArn": { + "type": "string" + }, + "SyncFormat": { + "type": "string" + } + }, + "required": [ + "BucketName", + "BucketRegion", + "SyncFormat" + ], + "type": "object" + }, + "AWS::SSM::ResourceDataSync.SyncSource": { + "additionalProperties": false, + "properties": { + "AwsOrganizationsSource": { + "$ref": "#/definitions/AWS::SSM::ResourceDataSync.AwsOrganizationsSource" + }, + "IncludeFutureRegions": { + "type": "boolean" + }, + "SourceRegions": { + "items": { + "type": "string" + }, + "type": "array" + }, + "SourceType": { + "type": "string" + } + }, + "required": [ + "SourceRegions", + "SourceType" + ], + "type": "object" + }, "AWS::SageMaker::CodeRepository": { "additionalProperties": false, "properties": { @@ -51983,6 +52373,9 @@ var SamSchema = `{ "Image": { "type": "string" }, + "Mode": { + "type": "string" + }, "ModelDataUrl": { "type": "string" } @@ -55686,6 +56079,15 @@ var SamSchema = `{ "HomeDirectory": { "type": "string" }, + "HomeDirectoryMappings": { + "items": { + "$ref": "#/definitions/AWS::Transfer::User.HomeDirectoryMapEntry" + }, + "type": "array" + }, + "HomeDirectoryType": { + "type": "string" + }, "Policy": { "type": "string" }, @@ -55731,6 +56133,22 @@ var SamSchema = `{ ], "type": "object" }, + "AWS::Transfer::User.HomeDirectoryMapEntry": { + "additionalProperties": false, + "properties": { + "Entry": { + "type": "string" + }, + "Target": { + "type": "string" + } + }, + "required": [ + "Entry", + "Target" + ], + "type": "object" + }, "AWS::Transfer::User.SshPublicKey": { "additionalProperties": false, "properties": {}, @@ -57360,7 +57778,8 @@ var SamSchema = `{ } }, "required": [ - "Name", + "Addresses", + "IPAddressVersion", "Scope" ], "type": "object" @@ -57451,7 +57870,7 @@ var SamSchema = `{ } }, "required": [ - "Name", + "RegularExpressionList", "Scope" ], "type": "object" @@ -57557,8 +57976,9 @@ var SamSchema = `{ } }, "required": [ - "Name", - "Scope" + "Capacity", + "Scope", + "VisibilityConfig" ], "type": "object" }, @@ -58135,8 +58555,9 @@ var SamSchema = `{ } }, "required": [ - "Name", - "Scope" + "DefaultAction", + "Scope", + "VisibilityConfig" ], "type": "object" }, @@ -59406,6 +59827,9 @@ var SamSchema = `{ { "$ref": "#/definitions/AWS::CodeBuild::Project" }, + { + "$ref": "#/definitions/AWS::CodeBuild::ReportGroup" + }, { "$ref": "#/definitions/AWS::CodeBuild::SourceCredential" }, @@ -59583,6 +60007,9 @@ var SamSchema = `{ { "$ref": "#/definitions/AWS::EC2::FlowLog" }, + { + "$ref": "#/definitions/AWS::EC2::GatewayRouteTableAssociation" + }, { "$ref": "#/definitions/AWS::EC2::Host" }, diff --git a/schema/sam.schema.json b/schema/sam.schema.json index 5f333d4441..860fe005b0 100644 --- a/schema/sam.schema.json +++ b/schema/sam.schema.json @@ -4926,7 +4926,8 @@ }, "required": [ "ComputeCapacity", - "InstanceType" + "InstanceType", + "Name" ], "type": "object" }, @@ -5061,7 +5062,8 @@ } }, "required": [ - "InstanceType" + "InstanceType", + "Name" ], "type": "object" }, @@ -6910,6 +6912,9 @@ "properties": { "InstanceType": { "type": "string" + }, + "WeightedCapacity": { + "type": "string" } }, "type": "object" @@ -9035,6 +9040,12 @@ }, "SubnetId": { "type": "string" + }, + "Tags": { + "items": { + "$ref": "#/definitions/Tag" + }, + "type": "array" } }, "required": [ @@ -11099,6 +11110,106 @@ ], "type": "object" }, + "AWS::CodeBuild::ReportGroup": { + "additionalProperties": false, + "properties": { + "DeletionPolicy": { + "enum": [ + "Delete", + "Retain", + "Snapshot" + ], + "type": "string" + }, + "DependsOn": { + "anyOf": [ + { + "pattern": "^[a-zA-Z0-9]+$", + "type": "string" + }, + { + "items": { + "pattern": "^[a-zA-Z0-9]+$", + "type": "string" + }, + "type": "array" + } + ] + }, + "Metadata": { + "type": "object" + }, + "Properties": { + "additionalProperties": false, + "properties": { + "ExportConfig": { + "$ref": "#/definitions/AWS::CodeBuild::ReportGroup.ReportExportConfig" + }, + "Name": { + "type": "string" + }, + "Type": { + "type": "string" + } + }, + "required": [ + "ExportConfig", + "Type" + ], + "type": "object" + }, + "Type": { + "enum": [ + "AWS::CodeBuild::ReportGroup" + ], + "type": "string" + } + }, + "required": [ + "Type", + "Properties" + ], + "type": "object" + }, + "AWS::CodeBuild::ReportGroup.ReportExportConfig": { + "additionalProperties": false, + "properties": { + "ExportConfigType": { + "type": "string" + }, + "S3Destination": { + "$ref": "#/definitions/AWS::CodeBuild::ReportGroup.S3ReportExportConfig" + } + }, + "required": [ + "ExportConfigType" + ], + "type": "object" + }, + "AWS::CodeBuild::ReportGroup.S3ReportExportConfig": { + "additionalProperties": false, + "properties": { + "Bucket": { + "type": "string" + }, + "EncryptionDisabled": { + "type": "boolean" + }, + "EncryptionKey": { + "type": "string" + }, + "Packaging": { + "type": "string" + }, + "Path": { + "type": "string" + } + }, + "required": [ + "Bucket" + ], + "type": "object" + }, "AWS::CodeBuild::SourceCredential": { "additionalProperties": false, "properties": { @@ -15045,6 +15156,39 @@ ], "type": "object" }, + "AWS::DLM::LifecyclePolicy.CrossRegionCopyRetainRule": { + "additionalProperties": false, + "properties": { + "Interval": { + "type": "number" + }, + "IntervalUnit": { + "type": "string" + } + }, + "type": "object" + }, + "AWS::DLM::LifecyclePolicy.CrossRegionCopyRule": { + "additionalProperties": false, + "properties": { + "CmkArn": { + "type": "string" + }, + "CopyTags": { + "type": "boolean" + }, + "Encrypted": { + "type": "boolean" + }, + "RetainRule": { + "$ref": "#/definitions/AWS::DLM::LifecyclePolicy.CrossRegionCopyRetainRule" + }, + "TargetRegion": { + "type": "string" + } + }, + "type": "object" + }, "AWS::DLM::LifecyclePolicy.FastRestoreRule": { "additionalProperties": false, "properties": { @@ -15056,11 +15200,14 @@ }, "Count": { "type": "number" + }, + "Interval": { + "type": "number" + }, + "IntervalUnit": { + "type": "string" } }, - "required": [ - "Count" - ], "type": "object" }, "AWS::DLM::LifecyclePolicy.Parameters": { @@ -15100,6 +15247,11 @@ "type": "array" } }, + "required": [ + "ResourceTypes", + "Schedules", + "TargetTags" + ], "type": "object" }, "AWS::DLM::LifecyclePolicy.RetainRule": { @@ -15107,11 +15259,14 @@ "properties": { "Count": { "type": "number" + }, + "Interval": { + "type": "number" + }, + "IntervalUnit": { + "type": "string" } }, - "required": [ - "Count" - ], "type": "object" }, "AWS::DLM::LifecyclePolicy.Schedule": { @@ -15123,6 +15278,12 @@ "CreateRule": { "$ref": "#/definitions/AWS::DLM::LifecyclePolicy.CreateRule" }, + "CrossRegionCopyRules": { + "items": { + "$ref": "#/definitions/AWS::DLM::LifecyclePolicy.CrossRegionCopyRule" + }, + "type": "array" + }, "FastRestoreRule": { "$ref": "#/definitions/AWS::DLM::LifecyclePolicy.FastRestoreRule" }, @@ -17823,6 +17984,64 @@ ], "type": "object" }, + "AWS::EC2::GatewayRouteTableAssociation": { + "additionalProperties": false, + "properties": { + "DeletionPolicy": { + "enum": [ + "Delete", + "Retain", + "Snapshot" + ], + "type": "string" + }, + "DependsOn": { + "anyOf": [ + { + "pattern": "^[a-zA-Z0-9]+$", + "type": "string" + }, + { + "items": { + "pattern": "^[a-zA-Z0-9]+$", + "type": "string" + }, + "type": "array" + } + ] + }, + "Metadata": { + "type": "object" + }, + "Properties": { + "additionalProperties": false, + "properties": { + "GatewayId": { + "type": "string" + }, + "RouteTableId": { + "type": "string" + } + }, + "required": [ + "GatewayId", + "RouteTableId" + ], + "type": "object" + }, + "Type": { + "enum": [ + "AWS::EC2::GatewayRouteTableAssociation" + ], + "type": "string" + } + }, + "required": [ + "Type", + "Properties" + ], + "type": "object" + }, "AWS::EC2::Host": { "additionalProperties": false, "properties": { @@ -17961,9 +18180,15 @@ }, "type": "array" }, + "HibernationOptions": { + "$ref": "#/definitions/AWS::EC2::Instance.HibernationOptions" + }, "HostId": { "type": "string" }, + "HostResourceGroupArn": { + "type": "string" + }, "IamInstanceProfile": { "type": "string" }, @@ -18190,6 +18415,15 @@ ], "type": "object" }, + "AWS::EC2::Instance.HibernationOptions": { + "additionalProperties": false, + "properties": { + "Configured": { + "type": "boolean" + } + }, + "type": "object" + }, "AWS::EC2::Instance.InstanceIpv6Address": { "additionalProperties": false, "properties": { @@ -36254,6 +36488,9 @@ "DetectorModelName": { "type": "string" }, + "EvaluationMethod": { + "type": "string" + }, "Key": { "type": "string" }, @@ -40461,6 +40698,9 @@ "NumberOfBrokerNodes": { "type": "number" }, + "OpenMonitoring": { + "$ref": "#/definitions/AWS::MSK::Cluster.OpenMonitoring" + }, "Tags": { "type": "object" } @@ -40587,6 +40827,54 @@ }, "type": "object" }, + "AWS::MSK::Cluster.JmxExporter": { + "additionalProperties": false, + "properties": { + "EnabledInBroker": { + "type": "boolean" + } + }, + "required": [ + "EnabledInBroker" + ], + "type": "object" + }, + "AWS::MSK::Cluster.NodeExporter": { + "additionalProperties": false, + "properties": { + "EnabledInBroker": { + "type": "boolean" + } + }, + "required": [ + "EnabledInBroker" + ], + "type": "object" + }, + "AWS::MSK::Cluster.OpenMonitoring": { + "additionalProperties": false, + "properties": { + "Prometheus": { + "$ref": "#/definitions/AWS::MSK::Cluster.Prometheus" + } + }, + "required": [ + "Prometheus" + ], + "type": "object" + }, + "AWS::MSK::Cluster.Prometheus": { + "additionalProperties": false, + "properties": { + "JmxExporter": { + "$ref": "#/definitions/AWS::MSK::Cluster.JmxExporter" + }, + "NodeExporter": { + "$ref": "#/definitions/AWS::MSK::Cluster.NodeExporter" + } + }, + "type": "object" + }, "AWS::MSK::Cluster.StorageInfo": { "additionalProperties": false, "properties": { @@ -44514,6 +44802,9 @@ "Properties": { "additionalProperties": false, "properties": { + "DefaultSubstitutions": { + "type": "string" + }, "HtmlPart": { "type": "string" }, @@ -44523,6 +44814,9 @@ "Tags": { "type": "object" }, + "TemplateDescription": { + "type": "string" + }, "TemplateName": { "type": "string" }, @@ -44716,12 +45010,18 @@ "Default": { "$ref": "#/definitions/AWS::Pinpoint::PushTemplate.DefaultPushNotificationTemplate" }, + "DefaultSubstitutions": { + "type": "string" + }, "GCM": { "$ref": "#/definitions/AWS::Pinpoint::PushTemplate.AndroidPushNotificationTemplate" }, "Tags": { "type": "object" }, + "TemplateDescription": { + "type": "string" + }, "TemplateName": { "type": "string" } @@ -45185,9 +45485,15 @@ "Body": { "type": "string" }, + "DefaultSubstitutions": { + "type": "string" + }, "Tags": { "type": "object" }, + "TemplateDescription": { + "type": "string" + }, "TemplateName": { "type": "string" } @@ -46163,6 +46469,9 @@ "BackupRetentionPeriod": { "type": "number" }, + "CACertificateIdentifier": { + "type": "string" + }, "CharacterSetName": { "type": "string" }, @@ -46241,6 +46550,9 @@ "MasterUsername": { "type": "string" }, + "MaxAllocatedStorage": { + "type": "number" + }, "MonitoringInterval": { "type": "number" }, @@ -50857,6 +51169,9 @@ "DocumentType": { "type": "string" }, + "Name": { + "type": "string" + }, "Tags": { "items": { "$ref": "#/definitions/Tag" @@ -51609,17 +51924,23 @@ "KMSKeyArn": { "type": "string" }, + "S3Destination": { + "$ref": "#/definitions/AWS::SSM::ResourceDataSync.S3Destination" + }, "SyncFormat": { "type": "string" }, "SyncName": { "type": "string" + }, + "SyncSource": { + "$ref": "#/definitions/AWS::SSM::ResourceDataSync.SyncSource" + }, + "SyncType": { + "type": "string" } }, "required": [ - "BucketName", - "BucketRegion", - "SyncFormat", "SyncName" ], "type": "object" @@ -51637,6 +51958,75 @@ ], "type": "object" }, + "AWS::SSM::ResourceDataSync.AwsOrganizationsSource": { + "additionalProperties": false, + "properties": { + "OrganizationSourceType": { + "type": "string" + }, + "OrganizationalUnits": { + "items": { + "type": "string" + }, + "type": "array" + } + }, + "required": [ + "OrganizationSourceType" + ], + "type": "object" + }, + "AWS::SSM::ResourceDataSync.S3Destination": { + "additionalProperties": false, + "properties": { + "BucketName": { + "type": "string" + }, + "BucketPrefix": { + "type": "string" + }, + "BucketRegion": { + "type": "string" + }, + "KMSKeyArn": { + "type": "string" + }, + "SyncFormat": { + "type": "string" + } + }, + "required": [ + "BucketName", + "BucketRegion", + "SyncFormat" + ], + "type": "object" + }, + "AWS::SSM::ResourceDataSync.SyncSource": { + "additionalProperties": false, + "properties": { + "AwsOrganizationsSource": { + "$ref": "#/definitions/AWS::SSM::ResourceDataSync.AwsOrganizationsSource" + }, + "IncludeFutureRegions": { + "type": "boolean" + }, + "SourceRegions": { + "items": { + "type": "string" + }, + "type": "array" + }, + "SourceType": { + "type": "string" + } + }, + "required": [ + "SourceRegions", + "SourceType" + ], + "type": "object" + }, "AWS::SageMaker::CodeRepository": { "additionalProperties": false, "properties": { @@ -51980,6 +52370,9 @@ "Image": { "type": "string" }, + "Mode": { + "type": "string" + }, "ModelDataUrl": { "type": "string" } @@ -55683,6 +56076,15 @@ "HomeDirectory": { "type": "string" }, + "HomeDirectoryMappings": { + "items": { + "$ref": "#/definitions/AWS::Transfer::User.HomeDirectoryMapEntry" + }, + "type": "array" + }, + "HomeDirectoryType": { + "type": "string" + }, "Policy": { "type": "string" }, @@ -55728,6 +56130,22 @@ ], "type": "object" }, + "AWS::Transfer::User.HomeDirectoryMapEntry": { + "additionalProperties": false, + "properties": { + "Entry": { + "type": "string" + }, + "Target": { + "type": "string" + } + }, + "required": [ + "Entry", + "Target" + ], + "type": "object" + }, "AWS::Transfer::User.SshPublicKey": { "additionalProperties": false, "properties": {}, @@ -57357,7 +57775,8 @@ } }, "required": [ - "Name", + "Addresses", + "IPAddressVersion", "Scope" ], "type": "object" @@ -57448,7 +57867,7 @@ } }, "required": [ - "Name", + "RegularExpressionList", "Scope" ], "type": "object" @@ -57554,8 +57973,9 @@ } }, "required": [ - "Name", - "Scope" + "Capacity", + "Scope", + "VisibilityConfig" ], "type": "object" }, @@ -58132,8 +58552,9 @@ } }, "required": [ - "Name", - "Scope" + "DefaultAction", + "Scope", + "VisibilityConfig" ], "type": "object" }, @@ -59403,6 +59824,9 @@ { "$ref": "#/definitions/AWS::CodeBuild::Project" }, + { + "$ref": "#/definitions/AWS::CodeBuild::ReportGroup" + }, { "$ref": "#/definitions/AWS::CodeBuild::SourceCredential" }, @@ -59580,6 +60004,9 @@ { "$ref": "#/definitions/AWS::EC2::FlowLog" }, + { + "$ref": "#/definitions/AWS::EC2::GatewayRouteTableAssociation" + }, { "$ref": "#/definitions/AWS::EC2::Host" },